]> git.eshelyaron.com Git - emacs.git/commitdiff
Add known-to-work version for c/c++-ts-mode
authorYuan Fu <casouri@gmail.com>
Fri, 20 Dec 2024 08:22:31 +0000 (00:22 -0800)
committerEshel Yaron <me@eshelyaron.com>
Mon, 23 Dec 2024 15:18:37 +0000 (16:18 +0100)
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

index cf1721d66ee20f7fd465699f57c6a147473262b6..67ccbb8594bfaa5cca94108ec6c1676f722c6dd3 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
+;;
+;; 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