diff --git a/lexers/embedded/odin.xml b/lexers/embedded/odin.xml index 5fca0a3..b984263 100644 --- a/lexers/embedded/odin.xml +++ b/lexers/embedded/odin.xml @@ -51,7 +51,7 @@ - + @@ -102,7 +102,7 @@ - + diff --git a/lexers/testdata/odin.actual b/lexers/testdata/odin.actual index ae7801c..1e19373 100644 --- a/lexers/testdata/odin.actual +++ b/lexers/testdata/odin.actual @@ -73,7 +73,7 @@ a_test_proc :: proc(t: ^testing.T) { testing.errnof("a format: %s", value) } -@(disable = ODIN_DEBUG) +@(disable = LOG_LEVEL >= .Debug) debug_thing :: proc(x, y, z: int) { fmt.println(x, y, z) } diff --git a/lexers/testdata/odin.expected b/lexers/testdata/odin.expected index 272c1c2..f0469e8 100644 --- a/lexers/testdata/odin.expected +++ b/lexers/testdata/odin.expected @@ -390,7 +390,7 @@ {"type":"TextWhitespace","value":"\n"}, {"type":"Punctuation","value":"}"}, {"type":"TextWhitespace","value":"\n\n"}, - {"type":"NameAttribute","value":"@(disable = ODIN_DEBUG)"}, + {"type":"NameAttribute","value":"@(disable = LOG_LEVEL \u003e= .Debug)"}, {"type":"TextWhitespace","value":"\n"}, {"type":"Name","value":"debug_thing"}, {"type":"TextWhitespace","value":" "}, @@ -427,7 +427,8 @@ {"type":"TextWhitespace","value":"\n"}, {"type":"Punctuation","value":"}"}, {"type":"TextWhitespace","value":"\n\n"}, - {"type":"NameAttribute","value":"@private\n"}, + {"type":"NameAttribute","value":"@private"}, + {"type":"TextWhitespace","value":"\n"}, {"type":"Name","value":"program"}, {"type":"TextWhitespace","value":" "}, {"type":"Operator","value":":="},