1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-02-13 13:28:27 +02:00

2 Commits

Author SHA1 Message Date
Ian Simonson
b8c853d742
Fix attributes and <, > in Odin Lexer (#803) 2023-07-21 10:26:33 +10:00
Ian Simonson
e1e698df6d
Add Odin lexer (#802)
* Add Odin lexer

Adds the odin.xml rules for a lexer along with odin.actual and
odin.expected

Should handle the majority of Odin syntax well enough including nested comments.
However for now I have just left attributes as one token rather than sub-parsing
the @(x = y) to be multiple tokens

* Revert hlsl, natural, and vhs.expected back to master

These upated when I was generating odin.expected. I am
not sure if it is better to update these as well or leave it
so I figured I would leave for now

* Add the sized bool types and all the big/little endian int types

Odin has a number of other built in integer types that are not
in most other languages. Make sure those are included
2023-07-20 07:51:54 +10:00