diff --git a/Odin.sublime-syntax b/Odin.sublime-syntax
index 60ab51f..f2abe0c 100644
--- a/Odin.sublime-syntax
+++ b/Odin.sublime-syntax
@@ -71,7 +71,7 @@ contexts:
scope: constant.numeric.odin
- match: '---'
scope: constant.numeric.odin
- - match: \b(struct|enum|union|map|bit_set|bit_field|dynamic)\b
+ - match: \b(struct|enum|union|map|bit_set|bit_field|dynamic|matrix)\b
scope: storage.type.odin
- match: \b(cast|transmute|auto_cast)\b
scope: keyword.function.odin
@@ -106,7 +106,7 @@ contexts:
- match: ({{identifier}})\s*[!]?\s*[\(]
captures:
1: support.function.odin
- - match: '\b({{identifier}})\s*[:]\s*[:]\s*(struct|union|enum|bit_set|bit_field)'
+ - match: '\b({{identifier}})\s*[:]\s*[:]\s*(struct|union|enum|bit_set|bit_field|matrix)'
captures:
1: meta.type.odin entity.name.type.odin
2: storage.type.odin
diff --git a/Odin.tmLanguage b/Odin.tmLanguage
index 8c73d70..d6ba929 100644
--- a/Odin.tmLanguage
+++ b/Odin.tmLanguage
@@ -223,7 +223,7 @@
match
- \b(struct|enum|union|map|bit_set|bit_field|dynamic)\b
+ \b(struct|enum|union|map|bit_set|bit_field|dynamic|matrix)\b
name
storage.type.odin
@@ -437,7 +437,7 @@
match
- \b(\b[[:alpha:]_]+[[:alnum:]_]*\b)\s*[:]\s*[:]\s*(struct|union|enum|bit_field|bit_set)
+ \b(\b[[:alpha:]_]+[[:alnum:]_]*\b)\s*[:]\s*[:]\s*(struct|union|enum|bit_field|bit_set|matrix)
captures
1