uxn.yaml: swap order of identifiers and constants, so, for example, the whole of a string constant with a period in it is highlighted as a constant

This commit is contained in:
Iris Lightshard 2021-08-25 00:40:21 -06:00
parent ee68f79246
commit 9f2b02cab0
Signed by: Iris Lightshard
GPG key ID: 3B7FBC22144E6398

View file

@ -4,8 +4,8 @@ detect:
filename: "\\.(tal|uxn|uxntal)$"
rules:
- constant: "[\"#'|$][^\ \n\r]+"
- 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]*\\ \\)"
- symbol: "\\[|\\]"