From 9f2b02cab09968c26ec98832a26dfc91afb6128c Mon Sep 17 00:00:00 2001 From: Derek Stevens Date: Wed, 25 Aug 2021 00:40:21 -0600 Subject: [PATCH] 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 --- micro/syntax/uxn.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/micro/syntax/uxn.yaml b/micro/syntax/uxn.yaml index f6919ba..09c1cf9 100644 --- a/micro/syntax/uxn.yaml +++ b/micro/syntax/uxn.yaml @@ -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: "\\[|\\]"