29 lines
705 B
YAML
29 lines
705 B
YAML
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"
|
|
- type: "\\b(bool|int|str)\\b"
|
|
- symbol.operator: "([-+<>]|==|!=|=>|print(ln)?)"
|
|
- identifier: "\\b(if|else|while)\\b"
|
|
- special: "\\b(deq|swp|dup|req|depth|decrease)\\b"
|
|
- special: "\\?\\?\\?"
|
|
- statement: "arr" |