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
Iris Lightshard nilix@nilfm.cc
PGP Signature
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEkFh6dA+k/6CXFXU4O3+8IhROY5gFAmEl5dUACgkQO3+8IhRO Y5jO7g/+IGU41hI1749KDeohlfXX004yT3sA+nAQZPZ7F4GoOEusrEVX19Dujkno sIyxskzO9m831H4jAm0eYPplfMkzfC8VvfCwbkbAv4NkxC31kZ/XqekVS5BuZBO8 /luR5r1zAAqaiH6gVXcJODP18jwQwVANosjSQEsldM9a2xCB6eCjWSzaiArfhCVk L6ZtuT0E0wLratpczGwSJUauqqkZDLpOwTHiPEZ7dXuP4X/gQvIA3GbC9UcrfPzB sr10scOGwytcuNzyBLqIstlF+T41Z+j7+hV5qb2+rMa0c6VnB8CxPhMZYuBw5aBO 5gKfynUkHQxNYsj2Uckt31E1c2M+tFNi9oxsdLWkNo/BVWnwTG0KyXH8TfGOlgiL rSJOt3fG/nAtHXLImmWWf8gdWyt3PBTJ5a3LbbzygHhCwVWH/jqHzsJpDG6sA7ag gLOCHPkpCD8ifXtRUVxMVNrbhkphNDhMnRMcefDBSFiC+ANlDFM6nmpWDM5ygb8s +G+u6y6tpmNXVhRriKo/uPJKiV07LsKN2WtD/O6duGBroBnO7STjRLr8vZwKAfwO vtDRS0hfp0MfVwmn++0VuQqcjGSRW5j3tIWMczm3GJhiFG+qDl57eKK91nYMajBU 5GwkNBsDJCnrJ+T+AXfJgQt4TW+K7b1d7XtPu3TjBhLEhFbeQY4= =pOLl -----END PGP SIGNATURE-----
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
micro/syntax/uxn.yaml
→
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: "\\[|\\]"