Skip to content

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

@Andriamanitra

Description

@Andriamanitra

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions