Closed marcinkoziej closed 1 year ago
Sorry to butt in, I'm not the maintainer of this grammar, but is it not supported? Looks like it is getting highlighted correctly in your code there, and GitHub uses tree sitter.
I have just created a test for it:
$ npm run test
> tree-sitter-gleam@0.27.0 test
> tree-sitter test
expressions:
(...)
✗ Use
(...)
1 failure:
expected / actual
1. Use:
(source_file
(use
(function_call
(identifier)
(arguments)))
(use
(identifier)
(function_call
(identifier)
(arguments)))
(use
(identifier)
(identifier)
(identifier)
(identifier)
(identifier)
(function_call
(identifier)
(arguments)))
(use
(tuple_pattern
(identifier)
(identifier))
(identifier))
(use
(ERROR <---- this is red :)
(identifier))
(record_pattern
(constructor_name)) <--- red until here
(identifier) <---- this is green
(type
(type_identifier)) <--- green
(function_call
(identifier)
(arguments))))
In both helix and emacs (and I've pulled grammars for both I get):
Assuming
wrapper
accepts a callback with a generic argument (egfn (event) -> Nil
):I can do this:
but I also can do this:
TS parsing will break down on such code - removal of
: ClickEvent
fixes it, but it's necessary.