Add basic TS support for Go re #121

This commit is contained in:
Andy K. Massimino
2022-01-08 12:32:34 -05:00
parent ecca332fca
commit 0981e4d5e0

View File

@@ -0,0 +1,12 @@
(function_declaration "func" @open.func) @scope.func
(func_literal "func" @open.func) @scope.func
(return_statement "return" @mid.func.1)
; 'else' and 'else if'
(if_statement
"else" @_start (if_statement "if" @_end)?
(#make-range! "mid.if.1" @_start @_end))
; if
(block (if_statement "if" @open.if) @scope.if)