mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 20:30:05 -04:00
feat(tiger): initial support
This commit is contained in:
parent
6227ae19b8
commit
ef385991b6
6 changed files with 270 additions and 0 deletions
24
queries/tiger/folds.scm
Normal file
24
queries/tiger/folds.scm
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
[
|
||||
(array_expression)
|
||||
(record_expression)
|
||||
(sequence_expression)
|
||||
(if_expression)
|
||||
(while_expression)
|
||||
(for_expression)
|
||||
(let_expression)
|
||||
(function_declaration)
|
||||
(primitive_declaration)
|
||||
|
||||
(record_type)
|
||||
|
||||
(class_declaration)
|
||||
(class_type)
|
||||
(method_declaration)
|
||||
] @fold
|
||||
|
||||
[
|
||||
(comment)
|
||||
(string_literal)
|
||||
] @ignore
|
||||
|
||||
; vim: sw=2 foldmethod=marker
|
||||
Loading…
Add table
Add a link
Reference in a new issue