mirror of
https://github.com/github/semantic.git
synced 2024-12-30 10:27:45 +03:00
646e1c3459
I went through a lot of trouble to make every identifier parsed in `tree-sitter-haskell` as accurate as possible (i.e. type variable identifier vs constructor identifier vs type class identifier). This enables us to keep those distinctions with assignment at the cost of adding more constructors.
10 lines
241 B
Plaintext
10 lines
241 B
Plaintext
(Module
|
|
(ModuleIdentifier)
|
|
(Statements
|
|
(DefaultDeclaration
|
|
{-(TypeConstructorIdentifier)-}
|
|
{-(TypeConstructorIdentifier)-})
|
|
{+(DefaultDeclaration
|
|
{+(TypeConstructorIdentifier)+}
|
|
{+(TypeConstructorIdentifier)+})+}))
|