Skip ruby-ts-syntax-propertize-symbol unless treesitter is available

*
 test/lisp/progmodes/ruby-ts-mode-tests.el (ruby-ts-syntax-propertize-symbol):
 Add check for treesitter.
This commit is contained in:
Robert Pluim 2023-03-10 11:13:42 +01:00
parent 081cc7aa8e
commit 679f528b95

View file

@ -259,6 +259,7 @@ The whitespace before and including \"|\" on each line is removed."
(should (string= (ruby-ts-add-log-current-function) "M::C#foo"))))
(ert-deftest ruby-ts-syntax-propertize-symbol ()
(skip-unless (treesit-ready-p 'ruby t))
(pcase-dolist (`(,str . ,expected)
'((":abc" . ":abc")
(":foo?" . #(":foo?" 4 5 (syntax-table (3))))