diff options
| author | DanielGavin <danielgavin5@hotmail.com> | 2024-03-18 23:31:47 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-18 23:31:47 +0100 |
| commit | 1e228970051db304de58ec0dfcabf4ec9541a725 (patch) | |
| tree | 403b6015edb231ac849ce1083061300aebc8207a | |
| parent | 8bcf3fccd6e1751565f193487703f6baebace30d (diff) | |
| parent | 5c2b43d71e3e53b3c893b84f6bf374c0b522164d (diff) | |
Merge pull request #319 from thetarnav/ansi-color-sequence
Add grammar for ansi color sequences in strings
| -rw-r--r-- | editors/vscode/syntaxes/odin.tmLanguage.json | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editors/vscode/syntaxes/odin.tmLanguage.json b/editors/vscode/syntaxes/odin.tmLanguage.json index b0090c7..04c5c20 100644 --- a/editors/vscode/syntaxes/odin.tmLanguage.json +++ b/editors/vscode/syntaxes/odin.tmLanguage.json @@ -549,6 +549,10 @@ "string-escaped-char": { "patterns": [ { + "name": "constant.character.escape.ansi-color-sequence.odin", + "match": "\\\\(x1b|e|033)\\[[0-9;]*m" + }, + { "name": "constant.character.escape.odin", "match": "\\\\(\\\\|[abfnrutv''\"]|x\\h{2}|u\\h{4}|U\\h{8}|[0-7]{3})" }, |