From 2dfedfe6aeb2b53f43afdf1f0d395a61ab005272 Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Mon, 23 Dec 2024 18:43:11 -0800 Subject: [PATCH] Fix cmake-ts-mode font-lock queries This commit in tree-sitter-cmake removed angle brackets: https://github.com/uyha/tree-sitter-cmake/commit/a414a4c83d54388f596269639c175a5b84bfa929 * lisp/progmodes/cmake-ts-mode.el (cmake-ts-mode--font-lock-settings): Remove angle brackets. (cherry picked from commit 4def541bbfe67b1a492e8a3b6041a1d8f76d680b) --- lisp/progmodes/cmake-ts-mode.el | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/cmake-ts-mode.el b/lisp/progmodes/cmake-ts-mode.el index 3ec239e89bb..1871ea39a47 100644 --- a/lisp/progmodes/cmake-ts-mode.el +++ b/lisp/progmodes/cmake-ts-mode.el @@ -22,6 +22,15 @@ ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs. If not, see . +;;; Tree-sitter language versions +;; +;; cmake-ts-mode is known to work with the following languages and version: +;; - tree-sitter-cmake: e409ae33f00e04cde30f2bcffb979caf1a33562a +;; +;; We try our best to make builtin modes work with latest grammar +;; versions, so a more recent grammar version has a good chance to work. +;; Send us a bug report if it doesn't. + ;;; Commentary: ;; @@ -175,7 +184,7 @@ Check if a node type is available, then return the right font lock rules." :feature 'misc-punctuation ;; Don't override strings. :override 'nil - '((["$" "{" "}" "<" ">"]) @font-lock-misc-punctuation-face) + '((["$" "{" "}"]) @font-lock-misc-punctuation-face) :language 'cmake :feature 'variable -- 2.39.5