From 2fc20ad0b11e60ecfacc653024f2b582acad6e86 Mon Sep 17 00:00:00 2001 From: Moon Flower Date: Mon, 11 Aug 2025 11:34:18 +0330 Subject: ir2 initial release! --- pu2/p2m-syntax/syntaxes/p2m.tmLanguage | 105 +++++++++++++++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 pu2/p2m-syntax/syntaxes/p2m.tmLanguage (limited to 'pu2/p2m-syntax/syntaxes/p2m.tmLanguage') diff --git a/pu2/p2m-syntax/syntaxes/p2m.tmLanguage b/pu2/p2m-syntax/syntaxes/p2m.tmLanguage new file mode 100644 index 0000000..3aa35e0 --- /dev/null +++ b/pu2/p2m-syntax/syntaxes/p2m.tmLanguage @@ -0,0 +1,105 @@ + + + + + name + P2M Assembly + + scopeName + source.p2m + + fileTypes + + p2m + + + patterns + + + + + name + comment.line.number-sign.p2m + match + #.*$ + + + + + name + punctuation.section.block.p2m + match + [\{\}] + + + + + name + keyword.control.mnemonic.p2m + match + \b(?:hlt|imm|lod|str|swp|add|sub|and|nnd)\b + + + + + name + variable.other.register.p2m + match + \b(?:a|b|c|v)\b + + + + + name + variable.other.memory.p2m + match + \bm\[\s*\d+\s*\] + + + + + name + variable.parameter.memory-index.p2m + match + @\d+ + + + + + name + constant.numeric.hex.p2m + match + \b0x[0-9A-Fa-f]+\b + + + name + constant.numeric.decimal.p2m + match + \b\d+\b + + + + + name + string.quoted.single.p2m + match + '(.) + + + + + name + comment.block.annotation.p2m + match + \([^\)]*\) + + + + + repository + + scope + source.p2m + + -- cgit v1.2.3