From: Yuan Fu Date: Mon, 30 Dec 2024 08:21:46 +0000 (-0800) Subject: Add verified grammar version comment for tree-sitter modes X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=34ba2533b4a949f3add403021e004b2c2fa0df50;p=emacs.git Add verified grammar version comment for tree-sitter modes * lisp/progmodes/c-ts-mode.el: * lisp/progmodes/cmake-ts-mode.el: * lisp/progmodes/dockerfile-ts-mode.el: * lisp/progmodes/elixir-ts-mode.el: * lisp/progmodes/go-ts-mode.el: * lisp/progmodes/heex-ts-mode.el: * lisp/progmodes/java-ts-mode.el: * lisp/progmodes/js.el: * lisp/progmodes/json-ts-mode.el: * lisp/progmodes/lua-ts-mode.el: * lisp/progmodes/php-ts-mode.el: * lisp/progmodes/ruby-ts-mode.el: * lisp/progmodes/rust-ts-mode.el: * lisp/textmodes/css-mode.el: * lisp/textmodes/html-ts-mode.el: Add comments. (cherry picked from commit 732a1108b0b553028ada334172635f039012a7f7) --- diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el index 5537439004e..65b5e7ab23d 100644 --- a/lisp/progmodes/c-ts-mode.el +++ b/lisp/progmodes/c-ts-mode.el @@ -25,7 +25,7 @@ ;;; Tree-sitter language versions ;; ;; c-ts-mode is known to work with the following languages and version: -;; - tree-sitter-c: v0.23.4 +;; - tree-sitter-c: v0.23.4-1-g3aa2995 ;; ;; c++-ts-mode is known to work with the following languages and version: ;; - tree-sitter-cpp: v0.23.4-1-gf41b4f6 diff --git a/lisp/progmodes/cmake-ts-mode.el b/lisp/progmodes/cmake-ts-mode.el index 1871ea39a47..6b28c9a05d4 100644 --- a/lisp/progmodes/cmake-ts-mode.el +++ b/lisp/progmodes/cmake-ts-mode.el @@ -25,7 +25,7 @@ ;;; Tree-sitter language versions ;; ;; cmake-ts-mode is known to work with the following languages and version: -;; - tree-sitter-cmake: e409ae33f00e04cde30f2bcffb979caf1a33562a +;; - tree-sitter-cmake: v0.5.0-5-ge409ae3 ;; ;; 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. diff --git a/lisp/progmodes/dockerfile-ts-mode.el b/lisp/progmodes/dockerfile-ts-mode.el index a234af65a3d..c0151a1148d 100644 --- a/lisp/progmodes/dockerfile-ts-mode.el +++ b/lisp/progmodes/dockerfile-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 +;; +;; dockerfile-ts-mode is known to work with the following languages and version: +;; - tree-sitter-dockerfile: v0.2.0-1-g087daa2 +;; +;; 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: ;; diff --git a/lisp/progmodes/elixir-ts-mode.el b/lisp/progmodes/elixir-ts-mode.el index 3294a5971f0..98da828a50a 100644 --- a/lisp/progmodes/elixir-ts-mode.el +++ b/lisp/progmodes/elixir-ts-mode.el @@ -21,6 +21,16 @@ ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs. If not, see . +;;; Tree-sitter language versions +;; +;; elixir-ts-mode is known to work with the following languages and version: +;; - tree-sitter-heex: v0.7.0 +;; - tree-sitter-elixir: v0.3.3 +;; +;; 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 `elixir-ts-mode' which is a major mode for editing diff --git a/lisp/progmodes/go-ts-mode.el b/lisp/progmodes/go-ts-mode.el index 91831b04530..54bcdbbbe29 100644 --- a/lisp/progmodes/go-ts-mode.el +++ b/lisp/progmodes/go-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 +;; +;; go-ts-mode is known to work with the following languages and version: +;; - tree-sitter-go: v0.23.4-1-g12fe553 +;; +;; 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: ;; diff --git a/lisp/progmodes/heex-ts-mode.el b/lisp/progmodes/heex-ts-mode.el index 7430e4f3adb..ac7707b0913 100644 --- a/lisp/progmodes/heex-ts-mode.el +++ b/lisp/progmodes/heex-ts-mode.el @@ -21,6 +21,15 @@ ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs. If not, see . +;;; Tree-sitter language versions +;; +;; heex-ts-mode is known to work with the following languages and version: +;; - tree-sitter-heex: v0.7.0 +;; +;; 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 `heex-ts-mode' which is a major mode for editing diff --git a/lisp/progmodes/java-ts-mode.el b/lisp/progmodes/java-ts-mode.el index 459e57ebfb4..8627366ddac 100644 --- a/lisp/progmodes/java-ts-mode.el +++ b/lisp/progmodes/java-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 +;; +;; java-ts-mode is known to work with the following languages and version: +;; - tree-sitter-java: v0.23.5 +;; +;; 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: ;; ;; If the tree-sitter doxygen grammar is available, then the comment diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el index d5bf4e9c716..6c27cd4adc3 100644 --- a/lisp/progmodes/js.el +++ b/lisp/progmodes/js.el @@ -24,6 +24,16 @@ ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs. If not, see . +;;; Tree-sitter language versions +;; +;; js-ts-mode is known to work with the following languages and version: +;; - tree-sitter-jsdoc: v0.23.2 +;; - tree-sitter-javascript: v0.23.1-2-g108b2d4 +;; +;; 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 is based on Karl Landstrom's barebones javascript-mode. This diff --git a/lisp/progmodes/json-ts-mode.el b/lisp/progmodes/json-ts-mode.el index 70b18ce7d95..cdecb329b5d 100644 --- a/lisp/progmodes/json-ts-mode.el +++ b/lisp/progmodes/json-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 +;; +;; json-ts-mode is known to work with the following languages and version: +;; - tree-sitter-json: v0.24.8-1-g4d770d3 +;; +;; 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: ;; diff --git a/lisp/progmodes/lua-ts-mode.el b/lisp/progmodes/lua-ts-mode.el index 857be185fcf..a0c492c335c 100644 --- a/lisp/progmodes/lua-ts-mode.el +++ b/lisp/progmodes/lua-ts-mode.el @@ -21,6 +21,15 @@ ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs. If not, see . +;;; Tree-sitter language versions +;; +;; lua-ts-mode is known to work with the following languages and version: +;; - tree-sitter-lua: v0.2.0-2-g34e60e7 +;; +;; 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 `lua-ts-mode' which is a major mode for Lua diff --git a/lisp/progmodes/php-ts-mode.el b/lisp/progmodes/php-ts-mode.el index 5a901064010..db689a7b269 100644 --- a/lisp/progmodes/php-ts-mode.el +++ b/lisp/progmodes/php-ts-mode.el @@ -22,6 +22,20 @@ ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs. If not, see . +;;; Tree-sitter language versions +;; +;; php-ts-mode is known to work with the following languages and version: +;; - tree-sitter-phpdoc: fe3202e468bc17332bec8969f2b50ff1f1da3a46 +;; - tree-sitter-css: v0.23.1-1-g6a442a3 +;; - tree-sitter-jsdoc: v0.23.2 +;; - tree-sitter-javascript: v0.23.1-2-g108b2d4 +;; - tree-sitter-html: v0.23.2-1-gd9219ad +;; - tree-sitter-php: v0.23.11 +;; +;; 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 `php-ts-mode' which is a major mode diff --git a/lisp/progmodes/ruby-ts-mode.el b/lisp/progmodes/ruby-ts-mode.el index 0ee72df6c9d..17e6a422720 100644 --- a/lisp/progmodes/ruby-ts-mode.el +++ b/lisp/progmodes/ruby-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 +;; +;; ruby-ts-mode is known to work with the following languages and version: +;; - tree-sitter-ruby: v0.23.1 +;; +;; 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 file defines ruby-ts-mode which is a major mode for editing diff --git a/lisp/progmodes/rust-ts-mode.el b/lisp/progmodes/rust-ts-mode.el index ee749e963cd..0d0f76644fe 100644 --- a/lisp/progmodes/rust-ts-mode.el +++ b/lisp/progmodes/rust-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 +;; +;; rust-ts-mode is known to work with the following languages and version: +;; - tree-sitter-rust: v0.23.2-1-g1f63b33 +;; +;; 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: ;; diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el index 5abe8fc30d8..74be66fdbc4 100644 --- a/lisp/textmodes/css-mode.el +++ b/lisp/textmodes/css-mode.el @@ -21,6 +21,15 @@ ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs. If not, see . +;;; Tree-sitter language versions +;; +;; css-ts-mode is known to work with the following languages and version: +;; - tree-sitter-css: v0.23.1-1-g6a442a3 +;; +;; 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: ;; Yet another CSS mode. diff --git a/lisp/textmodes/html-ts-mode.el b/lisp/textmodes/html-ts-mode.el index 875ab267fd8..4790a4fd547 100644 --- a/lisp/textmodes/html-ts-mode.el +++ b/lisp/textmodes/html-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 +;; +;; html-ts-mode is known to work with the following languages and version: +;; - tree-sitter-html: v0.23.2-1-gd9219ad +;; +;; 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: ;;