add new instructions and multiline comment support from makeworld

This commit is contained in:
Iris Lightshard 2021-08-26 19:54:31 -06:00
parent 9f2b02cab0
commit 129886c4ac
Signed by: Iris Lightshard
GPG key ID: 3B7FBC22144E6398

View file

@ -6,6 +6,10 @@ detect:
rules:
- identifier: "[@,;.&][^\ \n\r]+"
- constant: "[\"#'|$][^\ \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]{0,3}\\b"
- comment: "\\(\\ [\\S\\s]*\\ \\)"
- 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: "\\[|\\]"