Alexandre A. Muller
Alexandre A. Muller
By the way, there is Unicode Technical Standard for regular expressions: [UTS #18](https://unicode.org/reports/tr18/).
Things that worked for me in the past. First. See the path of the config file with `tree-sitter init-config` ``` $ tree-sitter init-config Remove your existing config file first: /home/muller/.tree-sitter/config.json...
Only saw this post today. If you are rolling back versions, you probably want to recompile your languages. I also getting `highlights: None`. But running `tree-sitter highlight` seems to work.
I does make sense to add timeout. But it shouldn't take that long to transverse the tree. It looks like there is something wrong elsewhere. I'll do some debugging. --------------------------------------------------------------------------------...
From a quick look, the slowdown isn't caused by the length of the rule. It seems to be related with the `ERROR`s. Tree-sitter-c struggles with the C preprocessor directives, and...
I haven't looked at the wasm backend and I don't know much about JS. Wouldn't be possible to create a DOM from the AST and use the browser infrastructure to...
I believe that's the expected behavior. The "Context-aware Lexing" (see [creating-parsers#conflicting-tokens](https://tree-sitter.github.io/tree-sitter/creating-parsers#conflicting-tokens)) has highest priority. As far as I understand, `extras` are only tried if everything else fails. Maybe `extras` could...
Yes, you can. ``` $ tree-sitter highlight grammar.js ``` ```js const NLF = /\r?\n/; module.exports = grammar({ name: 'foo', extras: $ => [ NLF, $.tk_prec2 ], rules: { top: $...
Hi @nikicoon, sorry for taking so long to answear :p. I'm back now :) First. See the version on *master* (I haven't changed the default to avoid breaking nvim-treesitter). It...
The queries are not applied consistently in different tools. For instance, queries written for nvim-tree-sitter behave differently on cli-tree-sitter. On cli-tree-sitter only first matching capture is highlighted. On the other...