Stephan Seitz

Results 462 comments of Stephan Seitz

Did you forget the `files` entry? ``` list.go = { install_info = { url = "path-to-local/tree-sitter-go", files = { "src/parser.c" }, }, maintainers = { "@theHamsta", "@WinWisely268" }, } ```...

It's because of `token`. Token makes everything inside of it a single token ("atom" of the syntax tree, so you can't see anything inside it) https://github.com/bab014/tree-sitter-go/blob/cc15e8eaada53b1e410d570d5c41613cef34395b/grammar.js#L832 tree-sitter-c does not use...

I guess you need to do just the same as for escape_sequence: https://github.com/tree-sitter/tree-sitter-go/blob/c03e250fe4b4021b0a0c81cf63b143371987ad40/grammar.js#L800-L818. Don't allow `%` in a normal string and add a rule in parallel to escape sequence just...

TODO: docs after we decided whether this option should be attach to module or lua file. Should this be a "fold style" option instead of boolean i.e. do we expect...

@kyazdani42 any alternative ideas on how to avoid adding more logic to non-attachable modules? Maybe just put the settings directly to the `fold.lua`?

Well it would work, it would still show you the function signature which I would assume to have close to the folds. Is there any difference to `ident` folding then...

We thought about `@fold_inner`. Any reason why you would like to have the last `brace` not included into the fold given that solo `}` doesn't give much information. Or is...

The grammar is very simple (https://github.com/thmsmlr/tree-sitter-rec/blob/main/grammar.js). Is this already supported by Vim's regex highlighting? With those few nodes, I suppose there would only be additional value when we have queries...

Are there any plans to add queries or can we close?

Would be open to that change. I think I would expose the module by a getter can calc the table on the fly in case we decide to no longer...