aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorDamian Tarnawski <gthetarnav@gmail.com>2024-04-23 22:37:13 +0200
committerDamian Tarnawski <gthetarnav@gmail.com>2024-04-23 22:37:13 +0200
commitcc275e89cc11c6d88b1de1985ef6cee2cbea85c3 (patch)
tree42721bbdf406ac0740da630c501ae2ed102122ff /editors
parent0811ac96707824adfac7df8ad29b88d43a52857f (diff)
Better match commas in attributes
Diffstat (limited to 'editors')
-rw-r--r--editors/vscode/syntaxes/odin.tmLanguage.json6
1 files changed, 4 insertions, 2 deletions
diff --git a/editors/vscode/syntaxes/odin.tmLanguage.json b/editors/vscode/syntaxes/odin.tmLanguage.json
index 7e10373..48f9687 100644
--- a/editors/vscode/syntaxes/odin.tmLanguage.json
+++ b/editors/vscode/syntaxes/odin.tmLanguage.json
@@ -69,10 +69,12 @@
"match": "\\b([A-Za-z_]\\w*)\\b",
"name": "entity.other.attribute-name.odin"
}, {
+ "match": ",",
+ "name": "punctuation.odin"
+ },{
"begin": "=",
"beginCaptures": {"0": {"name": "keyword.operator.assignment.odin"}},
- "end": "(,)|(?=\\))",
- "endCaptures": {"1": {"name": "punctuation.odin"}},
+ "end": "(?=,|\\))",
"patterns": [{"include": "#expressions"}]
}]
}]