vantreeseba / tree-sitter-haxe

MIT License
26 stars 11 forks source link

Functions without parentheses in switch case break further highlighting #23

Closed l0go closed 1 year ago

l0go commented 1 year ago

For instance everything after "Resource invalid" in this switch case will be highlighted as a string

switch (resource.type) {
    default: throw "Resource invalid";
}

See here: Screenshot of highlighting breaking on the above code snipper Adding parentheses around the string quote will solve this problem. When this occurs, the class keyword will also break like so: class keyword being white which is not the correct color