From 9f47c84aaa373024357b1bc70d749e345c59ffe5 Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Fri, 20 Dec 2024 00:22:31 -0800 Subject: [PATCH] Add known-to-work version for c/c++-ts-mode This is done by (treesit--verify-major-mode-queries '(c-ts-mode c++-ts-mode) '(c cpp) "/tmp/tree-sitter-grammars") * lisp/progmodes/c-ts-mode.el: Add comments. (cherry picked from commit 07cc8abca75e9c0180e993ad10f162c5218c9e5e) --- lisp/progmodes/c-ts-mode.el | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el index cf1721d66ee..67ccbb8594b 100644 --- a/lisp/progmodes/c-ts-mode.el +++ b/lisp/progmodes/c-ts-mode.el @@ -22,6 +22,18 @@ ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs. If not, see . +;;; Tree-sitter language versions +;; +;; c-ts-mode is known to work with the following languages and version: +;; - tree-sitter-c: v0.20.8-61-g3efee11 +;; +;; c++-ts-mode is known to work with the following languages and version: +;; - tree-sitter-cpp: v0.20.5-49-gf41b4f6 +;; +;; 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: ;; ;; This package provides major modes for C and C++, plus some handy -- 2.39.5