From bd13ce184bfaf43f905faff64c5306ff3518f892 Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Sat, 15 Oct 2022 16:14:02 -0700 Subject: [PATCH] * lisp/treesit.el (treesit-font-lock-rules): Warn about :feature. --- lisp/treesit.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisp/treesit.el b/lisp/treesit.el index 004e79b40ea..86da9e15866 100644 --- a/lisp/treesit.el +++ b/lisp/treesit.el @@ -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) -- 2.39.2