From 129886c4ac27944628ddb230947e305293dd2df7 Mon Sep 17 00:00:00 2001 From: Derek Stevens Date: Thu, 26 Aug 2021 19:54:31 -0600 Subject: [PATCH] add new instructions and multiline comment support from makeworld --- micro/syntax/uxn.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/micro/syntax/uxn.yaml b/micro/syntax/uxn.yaml index 09c1cf9..0ee08b7 100644 --- a/micro/syntax/uxn.yaml +++ b/micro/syntax/uxn.yaml @@ -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: "\\[|\\]"