diff options
| author | 2025-08-12 20:27:34 +0330 | |
|---|---|---|
| committer | 2025-08-12 20:27:34 +0330 | |
| commit | 15914727d83a6f46ad724e126179713d935e5e6f (patch) | |
| tree | 2f601872b7575e4f3c0ca8c366fb2a1e1ea1b4fb /pu2/i2-syntax | |
| parent | ir2 initial release! (diff) | |
ir2 prototype! includes strings and DATA segment and other stuffs :3
Diffstat (limited to 'pu2/i2-syntax')
| -rw-r--r-- | pu2/i2-syntax/syntaxes/i2.tmLanguage.json | 21 |
1 files changed, 20 insertions, 1 deletions
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 +} |
