mirror of
https://github.com/chenasraf/vim-matchup.git
synced 2026-05-17 17:38:01 +00:00
Add basic TS support for Go re #121
This commit is contained in:
12
after/queries/go/matchup.scm
Normal file
12
after/queries/go/matchup.scm
Normal 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)
|
||||
Reference in New Issue
Block a user