neovim/runtime/lua/vim/treesitter
Christian Clason c032e83b22 fix(treesitter): validate language name
Problem: Some injections (like markdown) allow specifying arbitrary
language names for code blocks, which may be lead to errors when
looking for a corresponding parser in runtime path.

Solution: Validate that the language name only contains alphanumeric
characters and `_` (e.g., for `c_sharp`) and error otherwise.
2023-01-28 11:28:52 +01:00
..
health.lua feat(checkhealth): check runtime ($VIMRUNTIME) 2022-10-30 16:23:58 +01:00
highlighter.lua fix(treesitter): really restore syntax 2023-01-17 16:56:23 +00:00
language.lua fix(treesitter): validate language name 2023-01-28 11:28:52 +01:00
languagetree.lua feat(treesitter): add vim.treesitter.show_tree() (#21322) 2022-12-08 09:22:57 -07:00
playground.lua feat(treesitter): add 'lang' option to show_tree() (#21341) 2022-12-08 09:51:46 -07:00
query.lua docs: treesitter.add_directive, add_predicate #21206 2023-01-16 04:39:19 -08:00