diff --git a/editors/vscode/syntaxes/odin.tmLanguage.json b/editors/vscode/syntaxes/odin.tmLanguage.json index c52d5890..349dcc2d 100644 --- a/editors/vscode/syntaxes/odin.tmLanguage.json +++ b/editors/vscode/syntaxes/odin.tmLanguage.json @@ -385,7 +385,7 @@ "match": "\\&" }, { - "name": "keyword.operator.pointer.odin", + "name": "keyword.operator.address.odin", "match": "\\^" }, { @@ -444,11 +444,39 @@ "patterns": [ { "name": "support.type.primitive.odin", - "match": "\\b((i8|i16|i32|i64|i128|int)|(u8|u16|u32|u64|u128|uint|uintptr))\\b" + "match": "\\b(i8|i16|i32|i64|i128|int)\\b" + }, + { + "name": "support.type.primitive.odin", + "match": "\\b(u8|u16|u32|u64|u128|uint|uintptr)\\b" + }, + { + "name": "support.type.primitive.odin", + "match": "\\b(u16le|u32le|u64le|u128le|i16le|i32le|i64le|i128le)\\b" + }, + { + "name": "support.type.primitive.odin", + "match": "\\b(i16be|i32be|i64be|i128be|u16be|u32be|u64be|u128be)\\b" + }, + { + "name": "support.type.primitive.odin", + "match": "\\b(f16|f32|f64)\\b" + }, + { + "name": "support.type.primitive.odin", + "match": "\\b(f16le|f32le|f64le)\\b" + }, + { + "name": "support.type.primitive.odin", + "match": "\\b(f16be|f32be|f64be)\\b" + }, + { + "name": "support.type.primitive.odin", + "match": "\\b(complex32|complex64|complex128)\\b" }, { "name": "support.type.primitive.odin", - "match": "\\b((f16|f32|f64)|(complex32|complex64|complex128)|(quaternion64|quaternion128|quaternion256))\\b" + "match": "\\b(quaternion64|quaternion128|quaternion256)\\b" }, { "name": "support.type.primitive.odin", @@ -456,11 +484,19 @@ }, { "name": "support.type.primitive.odin", - "match": "\\b(string|rune|rawptr|any)\\b" + "match": "\\b(string|cstring|rune)\\b" + }, + { + "name": "support.type.primitive.odin", + "match": "\\b(rawptr)\\b" + }, + { + "name": "support.type.primitive.odin", + "match": "\\b(any|typeid)\\b" }, { "name": "support.type.primitive.odin", - "match": "\\b(byte|cstring)\\b" + "match": "\\b(byte)\\b" } ] },