From 88ac654aca62d0eb4ac98d81c5542db6c1741cf2 Mon Sep 17 00:00:00 2001 From: Damian Tarnawski Date: Tue, 9 Apr 2024 10:58:55 +0200 Subject: [PATCH] Add bit_field keyword to tm grammars --- editors/vscode/syntaxes/odin.tmLanguage.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/editors/vscode/syntaxes/odin.tmLanguage.json b/editors/vscode/syntaxes/odin.tmLanguage.json index 04c5c20c..bd41c026 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",