kurz/editor/micro/kurz.yaml

29 lines
696 B
YAML
Raw Normal View History

2022-12-22 00:45:59 +01:00
filetype: kurz
detect:
filename: "\\.qbl$"
rules:
- comment:
start: "//"
end: "$"
rules:
- todo: "(TODO|FIXME):?"
- constant.string:
start: "\""
end: "\""
skip: "\\\\."
rules:
- constant.specialChar: "\\\\."
- constant.bool: "\\b(true|false)\\b"
# ints
- constant.number: "\\b([0-9]*)\\b"
- symbol.brackets: "[{}]"
# function
- identifier: "function"
2022-12-31 16:14:52 +01:00
- type: "\\b(bool|int|str)\\b"
2022-12-22 00:45:59 +01:00
- symbol.operator: "([-+<>]|==|!=|=>|print(ln)?)"
- identifier: "\\b(if|else|while)\\b"
- special: "\\b(deq|swp|dup|req|depth)\\b"
2022-12-22 00:45:59 +01:00
- special: "\\?\\?\\?"
- statement: "arr"