scpt/scpt.yaml

34 lines
779 B
YAML

# 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: []