From 15914727d83a6f46ad724e126179713d935e5e6f Mon Sep 17 00:00:00 2001 From: Moon Flower Date: Tue, 12 Aug 2025 20:27:34 +0330 Subject: ir2 prototype! includes strings and DATA segment and other stuffs :3 --- pu2/i2-syntax/syntaxes/i2.tmLanguage.json | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'pu2/i2-syntax/syntaxes/i2.tmLanguage.json') diff --git a/pu2/i2-syntax/syntaxes/i2.tmLanguage.json b/pu2/i2-syntax/syntaxes/i2.tmLanguage.json index d740a7d..4dc6ee9 100644 --- a/pu2/i2-syntax/syntaxes/i2.tmLanguage.json +++ b/pu2/i2-syntax/syntaxes/i2.tmLanguage.json @@ -14,6 +14,7 @@ { "include": "#variables" }, { "include": "#hex" }, { "include": "#decimal" }, + { "include": "#string" }, { "include": "#char" }, { "include": "#blob" }, { @@ -35,6 +36,7 @@ { "include": "#variables" }, { "include": "#hex" }, { "include": "#decimal" }, + { "include": "#string" }, { "include": "#char" }, { "include": "#blob" } ] @@ -85,6 +87,23 @@ "name": "constant.numeric.decimal.i2", "match": "\\b\\d+\\b" }, + "string": { + "begin": "\"", + "beginCaptures": { + "0": { "name": "punctuation.definition.string.begin.i2" } + }, + "end": "\"", + "endCaptures": { + "0": { "name": "punctuation.definition.string.end.i2" } + }, + "name": "string.quoted.double.i2", + "patterns": [ + { + "name": "constant.character.escape.i2", + "match": "\\\\." + } + ] + }, "char": { "name": "string.quoted.single.char.i2", "match": "'(\\\\.|[^'\\\\])'" @@ -103,4 +122,4 @@ ] } } -} \ No newline at end of file +} -- cgit v1.2.3