1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-09 05:01:02 -08:00

Fix syntax tables of tree-sitter modes (bug#59807)

Tree-sitter modes should use the same syntax table as the
non-tree-sitter ones.

* lisp/progmodes/js.el (js-mode-syntax-table)
(js-ts-mode)
* lisp/progmodes/python.el (python-ts-mode)
* lisp/progmodes/sh-script.el (bash-ts-mode)

Copyright-paperwork-exempt: yes

xx
This commit is contained in:
Kai Ma 2022-12-04 06:15:42 +08:00 committed by Yuan Fu
parent 91b8d9b7db
commit fafcf02c85
No known key found for this signature in database
GPG key ID: 56E19BC57664A442
3 changed files with 4 additions and 1 deletions

View file

@ -6619,6 +6619,7 @@ implementations: `python-mode' and `python-ts-mode'."
"Major mode for editing Python files, using tree-sitter library.
\\{python-ts-mode-map}"
:syntax-table python-mode-syntax-table
(when (treesit-ready-p 'python)
(treesit-parser-create 'python)
(setq-local treesit-font-lock-feature-list