]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix cmake-ts-mode font-lock queries
authorYuan Fu <casouri@gmail.com>
Tue, 24 Dec 2024 02:43:11 +0000 (18:43 -0800)
committerEshel Yaron <me@eshelyaron.com>
Fri, 27 Dec 2024 15:29:53 +0000 (16:29 +0100)
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

index 3ec239e89bbe6ea0d888093b8ecb4dac2a46fdbd..1871ea39a47358f4d4dede6a32147ec81ad6a917 100644 (file)
 ;; You should have received a copy of the GNU General Public License
 ;; along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.
 
+;;; 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