aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorjohn muhl2025-02-24 15:21:38 -0600
committerStefan Kangas2025-02-26 04:52:15 +0100
commit8bc933b64e0582def4c19b4cc633eaabdff625ce (patch)
treec7c60ff7c071db87e5b1f5c635d151b56d25b7d5 /test
parent539772135222755255a3c8ca0cdda73dc4d742b2 (diff)
downloademacs-8bc933b64e0582def4c19b4cc633eaabdff625ce.tar.gz
emacs-8bc933b64e0582def4c19b4cc633eaabdff625ce.zip
; Cleanup sexp things in 'lua-ts-mode'
* lisp/progmodes/lua-ts-mode.el (lua-ts-mode): Remove some nonsensical entries from 'treesit-thing-settings'. * test/lisp/progmodes/lua-ts-mode-resources/movement.erts: Add missing tests for 'backward-sexp'. (Bug#76534)
Diffstat (limited to 'test')
-rw-r--r--test/lisp/progmodes/lua-ts-mode-resources/movement.erts58
1 files changed, 54 insertions, 4 deletions
diff --git a/test/lisp/progmodes/lua-ts-mode-resources/movement.erts b/test/lisp/progmodes/lua-ts-mode-resources/movement.erts
index 11e86f12926..6e2ffb21d0e 100644
--- a/test/lisp/progmodes/lua-ts-mode-resources/movement.erts
+++ b/test/lisp/progmodes/lua-ts-mode-resources/movement.erts
@@ -436,9 +436,9 @@ function f(a, b)| end
436Name: forward-sexp moves over strings 436Name: forward-sexp moves over strings
437 437
438=-= 438=-=
439print("|1, 2, 3") 439print(|"1, 2, 3")
440=-= 440=-=
441print("1, 2, 3|") 441print("1, 2, 3"|)
442=-=-= 442=-=-=
443 443
444Name: forward-sexp moves over tables 444Name: forward-sexp moves over tables
@@ -557,9 +557,9 @@ function f|(a, b) end
557Name: backward-sexp moves over strings 557Name: backward-sexp moves over strings
558 558
559=-= 559=-=
560print("1, 2, 3|") 560print("1, 2, 3"|)
561=-= 561=-=
562print("|1, 2, 3") 562print(|"1, 2, 3")
563=-=-= 563=-=-=
564 564
565Name: backward-sexp moves over tables 565Name: backward-sexp moves over tables
@@ -601,3 +601,53 @@ end|
601 end 601 end
602end 602end
603=-=-= 603=-=-=
604
605Name: backward-sexp moves over do statements
606
607=-=
608do
609 print(a + 1)
610end|
611=-=
612|do
613 print(a + 1)
614end
615=-=-=
616
617Name: backward-sexp moves over for statements
618
619=-=
620for k,v in pairs({}) do
621 print(k, v)
622end|
623=-=
624|for k,v in pairs({}) do
625 print(k, v)
626end
627=-=-=
628
629Name: backward-sexp moves over repeat statements
630
631=-=
632repeat
633 n = n + 1
634until n > 10|
635=-=
636|repeat
637 n = n + 1
638until n > 10
639=-=-=
640
641Name: backward-sexp moves over while statements
642
643=-=
644while n < 99
645do
646 n = n+1
647end|
648=-=
649|while n < 99
650do
651 n = n+1
652end
653=-=-=