Last active
August 27, 2021 23:23
-
-
Save makew0rld/e0f957596879130ecb117629ec1cd1b7 to your computer and use it in GitHub Desktop.
Micro syntax for uxntal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filetype: uxntal | |
detect: | |
filename: "\\.(tal|uxn|uxntal|inc)$" | |
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: "\\[|\\]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment