aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorDamian Tarnawski <gthetarnav@gmail.com>2024-04-09 10:58:55 +0200
committerDamian Tarnawski <gthetarnav@gmail.com>2024-04-09 10:58:55 +0200
commit88ac654aca62d0eb4ac98d81c5542db6c1741cf2 (patch)
tree59a023dd25f2ee6fedf6caac57a9e33d7cd04448 /editors
parentb78a0178fd89c1b94f120dc1ec742d9e9e977404 (diff)
Add bit_field keyword to tm grammars
Diffstat (limited to 'editors')
-rw-r--r--editors/vscode/syntaxes/odin.tmLanguage.json6
1 files changed, 3 insertions, 3 deletions
diff --git a/editors/vscode/syntaxes/odin.tmLanguage.json b/editors/vscode/syntaxes/odin.tmLanguage.json
index 04c5c20..bd41c02 100644
--- a/editors/vscode/syntaxes/odin.tmLanguage.json
+++ b/editors/vscode/syntaxes/odin.tmLanguage.json
@@ -59,7 +59,7 @@
},
"type-assignment": {
"name": "meta.definition.variable.odin",
- "begin": "\\b([A-Za-z_]\\w*)\\s*(:\\s*:)\\s*(?=(struct|union|enum|bit_set)\\b)",
+ "begin": "\\b([A-Za-z_]\\w*)\\s*(:\\s*:)\\s*(?=(struct|union|enum|bit_set|bit_field)\\b)",
"beginCaptures": {
"1": { "name": "entity.name.type.odin" },
"2": { "name": "keyword.operator.assignment.odin" },
@@ -142,7 +142,7 @@
"patterns": [
{ "include": "#map-bitset" },
{
- "begin": "\\b(proc|struct|union|enum)\\b",
+ "begin": "\\b(proc|struct|union|enum|bit_field)\\b",
"beginCaptures": { "1": { "name": "storage.type.odin" } },
"end": "(?=^|\\)|,|;)|(?<=})",
"patterns": [
@@ -408,7 +408,7 @@
},
{
"name": "storage.type.odin",
- "match": "\\b(struct|enum|union|map|bit_set|matrix)\\b"
+ "match": "\\b(struct|enum|union|map|bit_set|bit_field|matrix)\\b"
},
{
"name": "keyword.operator.assignment.compound",