mirror of
https://github.com/nvim-treesitter/nvim-treesitter-context
synced 2024-09-16 22:24:04 +02:00
feat(org): adds support for orgmode files (#413)
* feat(org): adds support for orgmode files * fix(org): fixing the test file --------- Co-authored-by: Cayetano Carpio <cayetano@carpio.com>
This commit is contained in:
parent
b8d1ffe58a
commit
53cdd58446
2 changed files with 48 additions and 0 deletions
3
queries/org/context.scm
Normal file
3
queries/org/context.scm
Normal file
|
@ -0,0 +1,3 @@
|
|||
(section
|
||||
body: (_) @context.end
|
||||
) @context
|
45
test/test.org
Normal file
45
test/test.org
Normal file
|
@ -0,0 +1,45 @@
|
|||
* a heading
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
** a subheading
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
* another heading
|
||||
|
||||
|
||||
|
||||
|
||||
** a subheading
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
*** a subsubheading
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in a new issue