You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

33 lines
779 B

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