Add editor syntax file
This commit is contained in:
parent
dedb601a9b
commit
0abc74f043
29
editor/micro.yaml
Normal file
29
editor/micro.yaml
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
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|any)\\b"
|
||||||
|
- symbol.operator: "([-+<>]|==|!=|=>|print(ln)?)"
|
||||||
|
- identifier: "\\b(if|else|while)\\b"
|
||||||
|
- special: "\\b(deq|swp|dup|req|depth|decrease)\\b"
|
||||||
|
- special: "\\?\\?\\?"
|
||||||
|
- statement: "arr"
|
Loading…
x
Reference in New Issue
Block a user