scpt/scpt.yaml

34 lines
779 B
YAML
Raw Normal View History

2021-03-24 17:54:10 +00:00
# This file is a syntax file for https://github.com/zyedidia/highlight
# This file is also suitable for the micro text editor, to install, place in ~/.config/micro/syntax
filetype: scpt
detect:
filename: "\\.scpt$"
rules:
- special: "\\b(bool|str|num|append)\\b"
- statement: "\\b(define|set|to|loop|while|if|repeat|times|in|)\\b"
- statement: "\\$"
- symbol.operator: "(>=|<=|>|<|==|!=)|[-+*%/^]"
- symbol.brackets: "([(){}]|\\[|\\])"
- constant.number: "\\b(?:\\d*\\.)?\\d+\\b"
- constant.string:
start: "\""
end: "\""
rules: []
- constant.bool: "\\b(true|false)\\b"
- comment:
start: "###"
end: "###"
rules: []
- comment:
start: "#"
end: "$"
rules: []