]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/treesit.el (treesit-font-lock-rules): Warn about :feature.
authorYuan Fu <casouri@gmail.com>
Sat, 15 Oct 2022 23:14:02 +0000 (16:14 -0700)
committerYuan Fu <casouri@gmail.com>
Mon, 17 Oct 2022 08:48:50 +0000 (01:48 -0700)
lisp/treesit.el

index 004e79b40ea9c402e0ca0137c562f715561bbe03..86da9e158664d9ce07257cabfb2210f4c5ad3306 100644 (file)
@@ -414,6 +414,9 @@ ignored.
            (when (null current-language)
              (signal 'treesit-font-lock-error
                      `("Language unspecified, use :language keyword to specify a language for this query" ,token)))
+           (when (null current-feature)
+             (signal 'treesit-font-lock-error
+                     `("Feature unspecified, use :feature keyword to specify the feature name for this query" ,token)))
            (if (treesit-compiled-query-p token)
                (push `(,current-language token) result)
              (push `(,(treesit-query-compile current-language token)