Christian Clason
1e600d3b0a
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.
(cherry picked from commit c032e83b22
)
2023-01-31 16:29:10 +00:00
Christian Clason
6254b0fd3b
ci(tests): don't skip parsers on functionaltest
...
Treesitter parsers are now a mandatory part of the installation and
should be tested on all platforms. Remove `pending_c_parser` helper.
2022-09-06 07:57:46 +02:00
bfredl
73ee2b35d1
fix(tests): use pending_c_parser when needed
2022-08-25 20:49:27 +02:00
Quentin Rasmont
6b2d42eb03
feat(treesitter): add ability to retreive a tree/node given a range
2022-08-25 18:01:14 +02:00
Thomas Vigouroux
26ebf67c39
test(treesitter): make internal lang test pending when necessary
2022-08-24 16:59:13 +02:00
Thomas Vigouroux
3c1d70f20b
feat(treesitter): allow customizing language symbol name
2022-08-22 15:34:10 +02:00
James McCoy
6b0595d7cc
test(ts): skip test if C parser is not available
2022-06-08 18:04:25 -04:00
Chinmay Dalal
116a3f4683
fix(treesitter): create new parser if language is not the same as cached parser ( #18149 )
2022-04-22 16:15:28 +02:00
Thomas Vigouroux
e8bc3d717e
feat(ts): include parser ABI version in checkhealth
2021-04-06 19:02:58 +02:00
Björn Linse
adb01190c4
tests: make treesitter its own category
2021-01-03 14:47:29 +01:00