60 lines
969 B
Scheme
60 lines
969 B
Scheme
![]() |
(class_declaration
|
||
|
body: (class_body
|
||
|
.
|
||
|
"{"
|
||
|
.
|
||
|
(_) @_start @_end
|
||
|
(_)? @_end
|
||
|
.
|
||
|
"}"
|
||
|
(#make-range! "class.inner" @_start @_end))) @class.outer
|
||
|
|
||
|
(class_declaration
|
||
|
body: (enum_class_body
|
||
|
.
|
||
|
"{"
|
||
|
.
|
||
|
(_) @_start @_end
|
||
|
(_)? @_end
|
||
|
.
|
||
|
"}"
|
||
|
(#make-range! "class.inner" @_start @_end))) @class.outer
|
||
|
|
||
|
(function_declaration
|
||
|
body: (function_body
|
||
|
.
|
||
|
"{"
|
||
|
.
|
||
|
(_) @_start @_end
|
||
|
(_)? @_end
|
||
|
.
|
||
|
"}"
|
||
|
(#make-range! "function.inner" @_start @_end))) @function.outer
|
||
|
|
||
|
(lambda_literal
|
||
|
("{"
|
||
|
.
|
||
|
(_) @_start @_end
|
||
|
(_)? @_end
|
||
|
.
|
||
|
"}"
|
||
|
(#make-range! "function.inner" @_start @_end))) @function.outer
|
||
|
|
||
|
(call_suffix
|
||
|
(value_arguments
|
||
|
.
|
||
|
"("
|
||
|
.
|
||
|
(_) @_start
|
||
|
(_)? @_end
|
||
|
.
|
||
|
")"
|
||
|
(#make-range! "call.inner" @_start @_end))) @call.outer
|
||
|
|
||
|
(value_argument
|
||
|
value: (_) @parameter.inner) @parameter.outer
|
||
|
|
||
|
(comment) @comment.outer
|
||
|
|
||
|
(multiline_comment) @comment.outer
|