mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-09 06:50:06 -04:00
Add OpenFOAM parser
This commit is contained in:
parent
50fee51d35
commit
16e77495c4
9 changed files with 131 additions and 0 deletions
8
queries/foam/textobjects.scm
Normal file
8
queries/foam/textobjects.scm
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
(dict) @class.outer
|
||||
((dict_core) @class.inner)
|
||||
((key_value value: _? @_start (_)* _? @parameter.inner)
|
||||
(#make-range! "function.inner" @_start @parameter.inner)) @function.outer
|
||||
(code (_)* @class.inner) @class.outer
|
||||
((comment) @_start ((comment)+) @_end
|
||||
(#make-range! "comment.outer" @_start @_end))
|
||||
(comment) @comment.inner
|
||||
Loading…
Add table
Add a link
Reference in a new issue