mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-06 20:37:44 +03:00
Add support for Inko (#10656)
This adds formatting and Tree-sitter support for Inko (https://inko-lang.org/).
This commit is contained in:
parent
295a9a95ce
commit
b437b8b0ee
7 changed files with 295 additions and 0 deletions
38
runtime/queries/inko/textobjects.scm
Normal file
38
runtime/queries/inko/textobjects.scm
Normal file
|
@ -0,0 +1,38 @@
|
|||
(class
|
||||
body: (_) @class.inside) @class.around
|
||||
|
||||
(trait
|
||||
body: (_) @class.inside) @class.around
|
||||
|
||||
(method
|
||||
body: (_) @function.inside) @function.around
|
||||
|
||||
(reopen_class
|
||||
body: (_) @class.inside) @class.around
|
||||
|
||||
(implement_trait
|
||||
body: (_) @class.inside) @class.around
|
||||
|
||||
(external_function
|
||||
body: (_) @function.inside) @function.around
|
||||
|
||||
(closure
|
||||
body: (_) @function.inside) @function.around
|
||||
|
||||
(arguments
|
||||
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
|
||||
|
||||
(type_arguments
|
||||
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
|
||||
|
||||
(line_comment) @comment.inside
|
||||
|
||||
(line_comment)+ @comment.around
|
||||
|
||||
(array (_) @entry.around)
|
||||
|
||||
(tuple (_) @entry.around)
|
||||
|
||||
(tuple_pattern (_) @entry.around)
|
||||
|
||||
(define_field (_) @entry.inside) @entry.around
|
Loading…
Add table
Add a link
Reference in a new issue