diff --git a/Syntaxes/Zig.YAML-tmLanguage b/Syntaxes/Zig.YAML-tmLanguage
index 4982749..3d7329d 100644
--- a/Syntaxes/Zig.YAML-tmLanguage
+++ b/Syntaxes/Zig.YAML-tmLanguage
@@ -167,6 +167,15 @@ repository:
patterns:
- include: '#main'
+
+ - match: '\b(error)(\.)([a-zA-Z_]\w*|@\".+\")'
+ captures:
+ '1':
+ name: storage.type.error.zig
+ '2':
+ name: punctuation.accessor.zig
+ '3':
+ name: entity.name.error.zig
constants:
patterns:
diff --git a/Syntaxes/Zig.tmLanguage b/Syntaxes/Zig.tmLanguage
index 54a307d..cc1e22b 100644
--- a/Syntaxes/Zig.tmLanguage
+++ b/Syntaxes/Zig.tmLanguage
@@ -404,6 +404,28 @@
+
+ captures
+
+ 1
+
+ name
+ storage.type.error.zig
+
+ 2
+
+ name
+ punctuation.accessor.zig
+
+ 3
+
+ name
+ entity.name.error.zig
+
+
+ match
+ \b(error)(\.)([a-zA-Z_]\w*|@\".+\")
+
field_decl
diff --git a/Syntaxes/Zig.tmLanguage.json b/Syntaxes/Zig.tmLanguage.json
index c942887..bfac3de 100644
--- a/Syntaxes/Zig.tmLanguage.json
+++ b/Syntaxes/Zig.tmLanguage.json
@@ -650,6 +650,20 @@
"name": "storage.type.error.zig"
}
}
+ },
+ {
+ "match": "\\b(error)(\\.)([a-zA-Z_]\\w*|@\\\".+\\\")",
+ "captures": {
+ "1": {
+ "name": "storage.type.error.zig"
+ },
+ "3": {
+ "name": "entity.name.error.zig"
+ },
+ "2": {
+ "name": "punctuation.accessor.zig"
+ }
+ }
}
]
},