neovim/runtime/lua/vim/treesitter
Riley Bruins d3193afc25 fix(treesitter): remove duplicate symbol names in language.inspect()
**Problems:**

- `vim.treesitter.language.inspect()` returns duplicate
  symbol names, sometimes up to 6 of one kind in the case of `markdown`
- The list-like `symbols` table can have holes and is thus not even a
  valid msgpack table anyway, mentioned in a test

**Solution:** Return symbols as a map, rather than a list, where field
names are the names of the symbol. The boolean value associated with the
field encodes whether or not the symbol is named.

Note that anonymous nodes are surrounded with double quotes (`"`) to
prevent potential collisions with named counterparts that have the same
identifier.
2024-10-11 18:15:07 +02:00
..
_meta feat(treesitter): introduce child_with_descendant() 2024-10-11 17:29:45 +02:00
_fold.lua fix(treesitter): suppress get_parser warnings via opts.error 2024-09-28 00:31:45 +02:00
_query_linter.lua fix(treesitter): remove duplicate symbol names in language.inspect() 2024-10-11 18:15:07 +02:00
_range.lua docs(treesitter): generate inline docs for Ranges 2024-08-06 18:18:34 +02:00
dev.lua fix(treesitter): indent size for inspect_tree #28727 2024-10-01 09:07:30 -07:00
health.lua feat(treesitter): add support for wasm parsers 2024-08-26 16:44:03 +02:00
highlighter.lua fix(treesitter): ensure syntaxset augroup exists (#29542) 2024-07-03 07:40:42 +08:00
language.lua fix(treesitter): remove duplicate symbol names in language.inspect() 2024-10-11 18:15:07 +02:00
languagetree.lua feat(treesitter)!: use return values in language.add() 2024-09-29 15:27:16 +02:00
query.lua feat(treesitter)!: use return values in language.add() 2024-09-29 15:27:16 +02:00