Skip to content

Commit

Permalink
Increase verbosity in test-syn
Browse files Browse the repository at this point in the history
  • Loading branch information
andymass committed Nov 20, 2021
1 parent cd36658 commit 1840dac
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 5 deletions.
39 changes: 39 additions & 0 deletions after/queries/svelte/matchup.scm
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,42 @@
(self_closing_tag
(tag_name) @open.selftag
"/>" @close.selftag) @scope.selftag

; await
(await_statement
(await_start_expr
(special_block_keyword) @open.await
(#offset! @open.await 0 -1 0 0))) @scope.await
(await_end_expr
(special_block_keyword) @close.await
(#offset! @close.await 0 -1 0 0))
(then_expr
(special_block_keyword) @mid.await.1
(#offset! @mid.await.1 0 -1 0 0))
(catch_expr
(special_block_keyword) @mid.await.2
(#offset! @mid.await.2 0 -1 0 0))

; each
(each_statement
(each_start_expr
(special_block_keyword) @open.each
(#offset! @open.each 0 -1 0 0))) @scope.each
(each_end_expr
(special_block_keyword) @close.each
(#offset! @close.each 0 -1 0 0))

; if
(if_statement
(if_start_expr
(special_block_keyword) @open.if
(#offset! @open.if 0 -1 0 0))) @scope.if
(if_end_expr
(special_block_keyword) @close.if
(#offset! @close.if 0 -1 0 0))
(else_expr
(special_block_keyword) @mid.if.1
(#offset! @mid.if.1 0 -1 0 0))
(else_if_expr
. (special_block_keyword) @mid.if.2
(#offset! @mid.if.2 0 -1 0 0))
8 changes: 4 additions & 4 deletions test/new/test-syn/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ INMAKE := 1
export INMAKE

test:
@MODE=0 $(MYVIM) -u test.vim
@MODE=1 $(MYVIM) -u test.vim
@MODE=2 $(MYVIM) -u test.vim
@MODE=3 $(MYVIM) -u test.vim
MODE=0 $(MYVIM) -u test.vim
MODE=1 $(MYVIM) -u test.vim
MODE=2 $(MYVIM) -u test.vim
MODE=3 $(MYVIM) -u test.vim
1 change: 0 additions & 1 deletion test/new/test-syn/test.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ set nocompatible
source ../common/bootstrap.vim

if !$TESTS_ENABLE_TREESITTER && $MODE > 0
echo 'Exiting'
call matchup#test#finished()
endif

Expand Down

0 comments on commit 1840dac

Please sign in to comment.