add new instructions and multiline comment support from makeworld
Iris Lightshard nilix@nilfm.cc
PGP Signature
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEkFh6dA+k/6CXFXU4O3+8IhROY5gFAmEoRdcACgkQO3+8IhRO Y5hhNg//SrLm9vstGOv2pXT4qYRZIqcvDbEz9ElUm9HjdgZpjC46O+98eY6Mlm1+ JfScpjBs0CNS8pQCdLke58nmeiZtDF10c2ckAFxqEkEysER3UWZmz98SBVLxJVbc haPAmFokJQKVVnFaM7Hq1Ct0mMUgMPvUfRHe4iKgn4CJacHd+lkMF6ariAfE1XP0 XbimV6pfWZfdQ1qHnIAtNKqjJ9NCu0rXdcsMJZ2VdnadOvVDk/46fJeMkPOkX94C CMVtluInbkHatHfiVcY/yGKvJlteVcb9wq3Mx3n88b1LHB6bKzrXCmEJBBRoEUUZ JuncgKXowV13K42OyWXvqY4Qv+gvJl7x0geBnVAqF6FGS0HVIJYy2uyUI42W1Zv+ 7fkljGGUvJ/K7La6PcdQuXnUBfTld381Ywb3OlkrpX5uZLztqfTDsjz3BFA2jGQI CVaEzwgZxnrcB7DY63UxVMIUUFio2xI+VxlgByo5CgXIGcTnlQGkUMfbWJ9Tjn2K JH9dUU+tQPDwh3q7ZoQELGzEm5K9lZcl9skcPWclu4ur0vh9lOUjUkBHsEte4C9r Xs6Po3Ecq0a1ndR086SVapdlT3oLiABYO/AZjQ/mReWeZrcsn9a5lpr9fGf9vb6E iCS1ADh0ZoMTsED9aLiLkYzTu/DbArAD/4cWtvnYAvdqABvJ6DI= =4itt -----END PGP SIGNATURE-----
1 files changed,
6 insertions(+),
2 deletions(-)
jump to
M
micro/syntax/uxn.yaml
→
micro/syntax/uxn.yaml
@@ -6,6 +6,10 @@
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: "\\[|\\]"