Skip to content

Commit

Permalink
Merge pull request #260 from thetarnav/update-basic-types
Browse files Browse the repository at this point in the history
Update basic-types grammar
  • Loading branch information
DanielGavin authored Oct 10, 2023
2 parents d013041 + 38db21c commit 7a15d34
Showing 1 changed file with 41 additions and 5 deletions.
46 changes: 41 additions & 5 deletions editors/vscode/syntaxes/odin.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@
"match": "\\&"
},
{
"name": "keyword.operator.pointer.odin",
"name": "keyword.operator.address.odin",
"match": "\\^"
},
{
Expand Down Expand Up @@ -444,23 +444,59 @@
"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",
"match": "\\b(bool|b8|b16|b32|b64)\\b"
},
{
"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"
}
]
},
Expand Down

0 comments on commit 7a15d34

Please sign in to comment.