mirror of
https://github.com/github/semantic.git
synced 2024-11-28 01:47:01 +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.
29 lines
614 B
Plaintext
29 lines
614 B
Plaintext
(Module
|
|
{ (ModuleIdentifier)
|
|
->(ModuleIdentifier) }
|
|
(Export
|
|
(Statements
|
|
(TypeConstructorIdentifier)
|
|
(AllConstructors)))
|
|
(Export
|
|
(TypeConstructorExport
|
|
(ConstructorOperator
|
|
{ (ConstructorSymbol)
|
|
->(ConstructorSymbol) })))
|
|
(Export
|
|
(TypeConstructorExport
|
|
(VariableOperator
|
|
{ (VariableSymbol)
|
|
->(VariableSymbol) })))
|
|
(Export
|
|
(VariableIdentifier))
|
|
(Export
|
|
(ModuleExport
|
|
{ (ModuleIdentifier)
|
|
->(ModuleIdentifier) }))
|
|
(Export
|
|
(TypeConstructorExport
|
|
{ (ConstructorIdentifier)
|
|
->(ConstructorIdentifier) }))
|
|
(Statements))
|