11 lines
352 B
YAML
11 lines
352 B
YAML
filetype: uxntal
|
|
|
|
detect:
|
|
filename: "\\.(tal|uxn|uxntal)$"
|
|
|
|
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: "\\[|\\]"
|