aboutsummaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
authorMattias EngdegÄrd2023-06-17 11:55:12 +0200
committerMattias EngdegÄrd2023-06-17 11:56:22 +0200
commitc279369a7a9e373bb4b88feff0a05f56f3c0fa3b (patch)
treebfcad0cb947445a54a6c9278632963b3e6ef9f72 /test/src
parent30d5f1e62c0769a8d8ec41d0cd49e87b6ae45d40 (diff)
downloademacs-c279369a7a9e373bb4b88feff0a05f56f3c0fa3b.tar.gz
emacs-c279369a7a9e373bb4b88feff0a05f56f3c0fa3b.zip
; * src/treesit.c (treesit_query_string_string): fix last change
Escape the backslash character itself.
Diffstat (limited to 'test/src')
-rw-r--r--test/src/treesit-tests.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/src/treesit-tests.el b/test/src/treesit-tests.el
index 6e7d0fc48d2..34540b463cd 100644
--- a/test/src/treesit-tests.el
+++ b/test/src/treesit-tests.el
@@ -465,8 +465,8 @@ BODY is the test body."
465 465
466 ;; Test string conversion in `treesit-pattern-expand'. 466 ;; Test string conversion in `treesit-pattern-expand'.
467 (should (equal 467 (should (equal
468 (treesit-pattern-expand "a\nb\rc\td\0e\"f\1g") 468 (treesit-pattern-expand "a\nb\rc\td\0e\"f\1g\\h\fi")
469 "\"a\\nb\\rc\\td\\0e\\\"f\1g\""))))) 469 "\"a\\nb\\rc\\td\\0e\\\"f\1g\\\\h\fi\"")))))
470 470
471;;; Narrow 471;;; Narrow
472 472