From: Yuan Fu Date: Sat, 15 Oct 2022 23:14:02 +0000 (-0700) Subject: * lisp/treesit.el (treesit-font-lock-rules): Warn about :feature. X-Git-Tag: emacs-29.0.90~1826 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bd13ce184bfaf43f905faff64c5306ff3518f892;p=emacs.git * lisp/treesit.el (treesit-font-lock-rules): Warn about :feature. --- 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)