micro/syntax/uxn.yaml (raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# thanks to makeworld for new instructions and multiline comment support filetype: uxntal detect: filename: "\\.(tal|uxn|uxntal)$" rules: - identifier: "[@,;.&][^\ \n\r]+" - constant: "[\"#'|$][^\ \n\r]+" - statement: "\\b(BRK|LIT|INC|POP|DUP|NIP|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]{0,3}\\b" - comment: start: "\\(\\ " end: "\\ \\)" rules: [] - symbol: "\\[|\\]" |