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) (method_declaration)
] @fold ] @fold
[
(comment)
(string_literal)
] @ignore
; vim: sw=2 foldmethod=marker ; vim: sw=2 foldmethod=marker

View file

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

View file

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

View file

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

View file

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