From 679f528b953abaa9195381d51ecd7d66256ac294 Mon Sep 17 00:00:00 2001 From: Robert Pluim Date: Fri, 10 Mar 2023 11:13:42 +0100 Subject: [PATCH] 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. --- test/lisp/progmodes/ruby-ts-mode-tests.el | 1 + 1 file changed, 1 insertion(+) diff --git a/test/lisp/progmodes/ruby-ts-mode-tests.el b/test/lisp/progmodes/ruby-ts-mode-tests.el index 0e258275f97..e0d9f1b5c50 100644 --- a/test/lisp/progmodes/ruby-ts-mode-tests.el +++ b/test/lisp/progmodes/ruby-ts-mode-tests.el @@ -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)))) -- 2.39.2