diff options
| author | 2025-08-25 16:53:34 +0330 | |
|---|---|---|
| committer | 2025-08-25 16:53:34 +0330 | |
| commit | 8f73e9736317bd5d7951757357075504ea402d27 (patch) | |
| tree | b89acf08a72ab2d0195d033ce600134c78de663e /pu2/i2-syntax/syntaxes/i2.tmLanguage.json | |
| parent | fixed stack overflow bug (diff) | |
cool stuff, right? multi-process support with permission levels
Diffstat (limited to 'pu2/i2-syntax/syntaxes/i2.tmLanguage.json')
| -rw-r--r-- | pu2/i2-syntax/syntaxes/i2.tmLanguage.json | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/pu2/i2-syntax/syntaxes/i2.tmLanguage.json b/pu2/i2-syntax/syntaxes/i2.tmLanguage.json index b1078e2..190711e 100644 --- a/pu2/i2-syntax/syntaxes/i2.tmLanguage.json +++ b/pu2/i2-syntax/syntaxes/i2.tmLanguage.json @@ -12,6 +12,9 @@ "include": "#block-comments" }, { + "include": "#imports" + }, + { "include": "#macro-reference" }, { @@ -132,6 +135,27 @@ } ] }, + "imports": { + "begin": "\\b(import)\\b\\s+", + "beginCaptures": { + "1": { + "name": "keyword.control.import.i2" + } + }, + "end": ";", + "endCaptures": { + "0": { + "name": "punctuation.separator.semicolon.i2" + } + }, + "name": "meta.import.i2", + "patterns": [ + { + "name": "constant.other.path.i2", + "match": "(?:\\./|/)?[A-Za-z0-9_./-]+\\.i2\\b" + } + ] + }, "braces": { "name": "punctuation.section.block.i2", "match": "[\\{\\}]" @@ -146,7 +170,7 @@ }, "keywords": { "name": "keyword.control.i2", - "match": "\\b(?:macro|system|exit|let|while|if)\\b" + "match": "\\b(?:macro|system|exit|let|while|if|import)\\b" }, "jump-call": { "begin": "\\b(?:jmp|jz|jnz)\\s*\\(", |
