Compare commits

...

4 commits

Author SHA1 Message Date
Bruno BELANYI 2917939176 Ignore comments and strings folding
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-22 10:15:25 +01:00
Bruno BELANYI 268dd92906 Remove duplicate high-lights 2022-11-22 10:14:39 +01:00
Bruno BELANYI 9d9238f284 Add 'import' high-lighting 2022-11-22 10:14:16 +01:00
Bruno BELANYI 089a585a41 Fix 'class_type' textobject 2022-11-22 10:05:37 +01:00
5 changed files with 9 additions and 18 deletions

View file

@ -16,9 +16,4 @@
(method_declaration)
] @fold
[
(comment)
(string_literal)
] @ignore
; vim: sw=2 foldmethod=marker

View file

@ -34,30 +34,25 @@
"method"
] @keyword.method
[
"import"
] @include
[
"array"
(break_expression)
"do"
"else"
"end"
"for"
"function"
"if"
"import"
"in"
"let"
"of"
"primitive"
"then"
"to"
"type"
"var"
"while"
"class"
"extends"
"method"
"new"
"_cast"
"_chunks"

View file

@ -31,8 +31,9 @@
; Class {{{
(class_declaration
fields: (_)* @class.inner) @class.outer
(class_type
fields: (_)* @class.inner) @class.outer
(type_declaration
(class_type
fields: (_)* @class.inner)) @class.outer
; }}}
; Misc {{{

View file

@ -1,3 +1,3 @@
import "lib.tih"
/* <- keyword */
/* <- include */
/* ^ string.special.path */

View file

@ -10,7 +10,7 @@ let
/* <- keyword.function */
import "lib.tih"
/* <- keyword */
/* <- include */
type array_of_int = array of int
/* <- keyword */