diff --git a/editor/micro.yaml b/editor/micro.yaml new file mode 100644 index 0000000..e14123b --- /dev/null +++ b/editor/micro.yaml @@ -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" \ No newline at end of file