@@ -569,15 +569,15 @@ describe("can handle treesitter identifiers", function()
569
569
debugprint .setup ({})
570
570
571
571
local filename = init_file ({
572
- " function x() { " ,
572
+ " function x()" ,
573
573
" local xyz = 3" ,
574
574
" end" ,
575
575
}, " lua" , 2 , 6 )
576
576
577
577
feedkeys (" g?v<CR>" )
578
578
579
579
check_lines ({
580
- " function x() { " ,
580
+ " function x()" ,
581
581
" local xyz = 3" ,
582
582
" print('DEBUGPRINT[1]: " .. filename .. " :2: xyz=' .. vim.inspect(xyz))" ,
583
583
" end" ,
@@ -590,15 +590,15 @@ describe("can handle treesitter identifiers", function()
590
590
debugprint .setup ({})
591
591
592
592
local filename = init_file ({
593
- " function x() { " ,
593
+ " function x()" ,
594
594
" local xyz = 3" ,
595
595
" end" ,
596
596
}, " lua" , 2 , 6 )
597
597
598
598
feedkeys (" g?vapple<CR>" )
599
599
600
600
check_lines ({
601
- " function x() { " ,
601
+ " function x()" ,
602
602
" local xyz = 3" ,
603
603
" print('DEBUGPRINT[1]: "
604
604
.. filename
@@ -613,7 +613,7 @@ describe("can handle treesitter identifiers", function()
613
613
debugprint .setup ({})
614
614
615
615
local filename = init_file ({
616
- " function x() { " ,
616
+ " function x()" ,
617
617
" local xyz = 3" ,
618
618
" end" ,
619
619
}, " lua" , 2 , 6 )
@@ -629,7 +629,7 @@ describe("can handle treesitter identifiers", function()
629
629
feedkeys (" zxaapple<CR>" )
630
630
631
631
check_lines ({
632
- " function x() { " ,
632
+ " function x()" ,
633
633
" local xyz = 3" ,
634
634
" print('DEBUGPRINT[1]: "
635
635
.. filename
@@ -646,15 +646,15 @@ describe("visual selection", function()
646
646
debugprint .setup ({ ignore_treesitter = true })
647
647
648
648
local filename = init_file ({
649
- " function x() { " ,
649
+ " function x()" ,
650
650
" local xyz = 3" ,
651
651
" end" ,
652
652
}, " lua" , 2 , 6 )
653
653
654
654
feedkeys (" vllg?v" )
655
655
656
656
check_lines ({
657
- " function x() { " ,
657
+ " function x()" ,
658
658
" local xyz = 3" ,
659
659
" print('DEBUGPRINT[1]: " .. filename .. " :2: xyz=' .. vim.inspect(xyz))" ,
660
660
" end" ,
@@ -665,15 +665,15 @@ describe("visual selection", function()
665
665
debugprint .setup ({ ignore_treesitter = true })
666
666
667
667
local filename = init_file ({
668
- " function x() { " ,
668
+ " function x()" ,
669
669
" local xyz = 3" ,
670
670
" end" ,
671
671
}, " lua" , 2 , 6 )
672
672
673
673
feedkeys (" vllg?v." )
674
674
675
675
check_lines ({
676
- " function x() { " ,
676
+ " function x()" ,
677
677
" local xyz = 3" ,
678
678
" print('DEBUGPRINT[2]: " .. filename .. " :2: xyz=' .. vim.inspect(xyz))" ,
679
679
" print('DEBUGPRINT[1]: " .. filename .. " :2: xyz=' .. vim.inspect(xyz))" ,
@@ -685,15 +685,15 @@ describe("visual selection", function()
685
685
debugprint .setup ({ ignore_treesitter = true })
686
686
687
687
local filename = init_file ({
688
- " function x() { " ,
688
+ " function x()" ,
689
689
" xyz" ,
690
690
" end" ,
691
691
}, " lua" , 2 , 0 )
692
692
693
693
feedkeys (" vllg?v" )
694
694
695
695
check_lines ({
696
- " function x() { " ,
696
+ " function x()" ,
697
697
" xyz" ,
698
698
" print('DEBUGPRINT[1]: " .. filename .. " :2: xyz=' .. vim.inspect(xyz))" ,
699
699
" end" ,
@@ -704,15 +704,15 @@ describe("visual selection", function()
704
704
debugprint .setup ({ ignore_treesitter = true })
705
705
706
706
local filename = init_file ({
707
- " function x() { " ,
707
+ " function x()" ,
708
708
" local xyz = 3" ,
709
709
" end" ,
710
710
}, " lua" , 2 , 8 )
711
711
712
712
feedkeys (" vhhg?v" )
713
713
714
714
check_lines ({
715
- " function x() { " ,
715
+ " function x()" ,
716
716
" local xyz = 3" ,
717
717
" print('DEBUGPRINT[1]: " .. filename .. " :2: xyz=' .. vim.inspect(xyz))" ,
718
718
" end" ,
@@ -723,15 +723,15 @@ describe("visual selection", function()
723
723
debugprint .setup ({ ignore_treesitter = true })
724
724
725
725
local filename = init_file ({
726
- " function x() { " ,
726
+ " function x()" ,
727
727
" local xyz = 3" ,
728
728
" end" ,
729
729
}, " lua" , 2 , 6 )
730
730
731
731
feedkeys (" vllg?v" )
732
732
733
733
check_lines ({
734
- " function x() { " ,
734
+ " function x()" ,
735
735
" local xyz = 3" ,
736
736
" print('DEBUGPRINT[1]: " .. filename .. " :2: xyz=' .. vim.inspect(xyz))" ,
737
737
" end" ,
@@ -742,15 +742,15 @@ describe("visual selection", function()
742
742
debugprint .setup ({ ignore_treesitter = true })
743
743
744
744
local filename = init_file ({
745
- " function x() { " ,
745
+ " function x()" ,
746
746
" local xyz = 3" ,
747
747
" end" ,
748
748
}, " lua" , 2 , 6 )
749
749
750
750
feedkeys (" vllg?V" )
751
751
752
752
check_lines ({
753
- " function x() { " ,
753
+ " function x()" ,
754
754
" print('DEBUGPRINT[1]: "
755
755
.. filename
756
756
.. " :2: xyz=' .. vim.inspect(xyz))" ,
@@ -763,7 +763,7 @@ describe("visual selection", function()
763
763
debugprint .setup ({ ignore_treesitter = true })
764
764
765
765
init_file ({
766
- " function x() { " ,
766
+ " function x()" ,
767
767
" local xyz = 3" ,
768
768
" end" ,
769
769
}, " lua" , 1 , 1 )
@@ -782,15 +782,15 @@ describe("motion mode", function()
782
782
debugprint .setup ({ ignore_treesitter = true })
783
783
784
784
local filename = init_file ({
785
- " function x() { " ,
785
+ " function x()" ,
786
786
" local xyz = 3" ,
787
787
" end" ,
788
788
}, " lua" , 2 , 6 )
789
789
790
790
feedkeys (" g?o2l" )
791
791
792
792
check_lines ({
793
- " function x() { " ,
793
+ " function x()" ,
794
794
" local xyz = 3" ,
795
795
" print('DEBUGPRINT[1]: " .. filename .. " :2: xy=' .. vim.inspect(xy))" ,
796
796
" end" ,
@@ -801,15 +801,15 @@ describe("motion mode", function()
801
801
debugprint .setup ({ ignore_treesitter = true })
802
802
803
803
local filename = init_file ({
804
- " function x() { " ,
804
+ " function x()" ,
805
805
" local xyz = 3" ,
806
806
" end" ,
807
807
}, " lua" , 2 , 6 )
808
808
809
809
feedkeys (" g?o2l." )
810
810
811
811
check_lines ({
812
- " function x() { " ,
812
+ " function x()" ,
813
813
" local xyz = 3" ,
814
814
" print('DEBUGPRINT[2]: " .. filename .. " :2: xy=' .. vim.inspect(xy))" ,
815
815
" print('DEBUGPRINT[1]: " .. filename .. " :2: xy=' .. vim.inspect(xy))" ,
@@ -821,15 +821,15 @@ describe("motion mode", function()
821
821
debugprint .setup ({ ignore_treesitter = true })
822
822
823
823
local filename = init_file ({
824
- " function x() { " ,
824
+ " function x()" ,
825
825
" local xyz = 3" ,
826
826
" end" ,
827
827
}, " lua" , 2 , 6 )
828
828
829
829
feedkeys (" g?Oiw" )
830
830
831
831
check_lines ({
832
- " function x() { " ,
832
+ " function x()" ,
833
833
" print('DEBUGPRINT[1]: "
834
834
.. filename
835
835
.. " :2: xyz=' .. vim.inspect(xyz))" ,
@@ -842,7 +842,7 @@ describe("motion mode", function()
842
842
debugprint .setup ({ ignore_treesitter = true })
843
843
844
844
local filename = init_file ({
845
- " function x() { " ,
845
+ " function x()" ,
846
846
" local xyz = 3" ,
847
847
" end" ,
848
848
}, " lua" , 2 , 6 )
@@ -851,7 +851,7 @@ describe("motion mode", function()
851
851
feedkeys (" j." )
852
852
853
853
check_lines ({
854
- " function x() { " ,
854
+ " function x()" ,
855
855
" local xyz = 3" ,
856
856
" print('DEBUGPRINT[1]: " .. filename .. " :2: xyz=' .. vim.inspect(xyz))" ,
857
857
" print('DEBUGPRINT[2]: " .. filename .. " :3: xyz=' .. vim.inspect(xyz))" ,
@@ -863,7 +863,7 @@ describe("motion mode", function()
863
863
debugprint .setup ({ ignore_treesitter = true })
864
864
865
865
init_file ({
866
- " function x() { " ,
866
+ " function x()" ,
867
867
" local xyz = 3" ,
868
868
" end" ,
869
869
}, " lua" , 1 , 1 )
0 commit comments