sublime-crystal icon indicating copy to clipboard operation
sublime-crystal copied to clipboard

Syntax highlighting does not work correctly for generic types in function parameters

Open Andriamanitra opened this issue 1 year ago • 0 comments

Describe the bug Syntax highlighting starts doing weird things when there are generic types in a parameter list.

To Reproduce Paste this snippet to sublime code buffer with Crystal syntax selected:

def func(a : String, b : Array(String), c : String)
  p a
end

Expected behavior I expect the parameter c to be the same color as a and b, and the parens in Array(String) to both be same color.

Screenshots image

Andriamanitra avatar Mar 25 '23 01:03 Andriamanitra