mirror of
https://github.com/nvim-treesitter/nvim-treesitter-context
synced 2024-09-16 14:14:03 +02:00
feat(xml): add xml support
This commit is contained in:
parent
d8fd71428e
commit
a17c31268b
3 changed files with 103 additions and 0 deletions
|
@ -176,6 +176,7 @@ Note: if you need support for Neovim 0.6.x please use the tag `compat/0.6`.
|
|||
- [ ] `vue`
|
||||
- [ ] `wgsl`
|
||||
- [ ] `wgsl_bevy`
|
||||
- [x] `xml`
|
||||
- [ ] `yang`
|
||||
- [ ] `yuck`
|
||||
|
||||
|
|
4
queries/xml/context.scm
Normal file
4
queries/xml/context.scm
Normal file
|
@ -0,0 +1,4 @@
|
|||
|
||||
([
|
||||
(element)
|
||||
] @context)
|
98
test/test.xml
Normal file
98
test/test.xml
Normal file
|
@ -0,0 +1,98 @@
|
|||
<catalog>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<book>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<details>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<title>Python Crash Course</title>
|
||||
|
||||
</details>
|
||||
</book>
|
||||
</catalog>
|
||||
|
||||
|
Loading…
Reference in a new issue