update micro configs, add uxntal syntax hilighting

This commit is contained in:
Iris Lightshard 2021-08-11 16:05:12 -06:00
parent 3ccf451662
commit c0aa4c45f5
Signed by: Iris Lightshard
GPG key ID: 3B7FBC22144E6398
4 changed files with 19 additions and 0 deletions

8
micro/bindings.json Normal file
View file

@ -0,0 +1,8 @@
{
"Alt-/": "lua:comment.comment",
"Alt-a": "lua:snippets.Accept",
"Alt-d": "lua:snippets.Cancel",
"Alt-s": "lua:snippets.Insert",
"Alt-w": "lua:snippets.Next",
"CtrlUnderscore": "lua:comment.comment"
}

11
micro/syntax/uxn.yaml Normal file
View file

@ -0,0 +1,11 @@
filetype: uxntal
detect:
filename: "\\.tal$"
rules:
- constant: "[\"#'|$][^\ \n\r]+"
- identifier: "[@,;.&][^\ \n\r]+"
- statement: "\\b(BRK|LIT|NOP|POP|DUP|SWP|OVR|ROT|EQU|NEQ|GTH|LTH|JMP|JCN|JSR|STH|LDZ|STZ|LDR|STR|LDA|STA|DEI|DEO|ADD|SUB|MUL|DIV|AND|ORA|EOR|SFT)[2rk]?\\b"
- comment: "\\([\\S\\s]*\\)"
- symbol: "\\[|\\]"