diff options
author | Kai Ma <justksqsf@gmail.com> | 2022-12-04 06:15:42 +0800 |
---|---|---|
committer | Yuan Fu <casouri@gmail.com> | 2022-12-13 18:05:48 -0800 |
commit | fafcf02c856ef8fd712ff75e8999dfb0f6d97f07 (patch) | |
tree | e8b4dd4f38f96f66586e53d9da905225b77b738b /lisp/progmodes/js.el | |
parent | 91b8d9b7db47f242cf33f0e99d787c235d761d4b (diff) | |
download | emacs-fafcf02c856ef8fd712ff75e8999dfb0f6d97f07.tar.gz |
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
Diffstat (limited to 'lisp/progmodes/js.el')
-rw-r--r-- | lisp/progmodes/js.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el index 1de0f3442f0..02990813ef4 100644 --- a/lisp/progmodes/js.el +++ b/lisp/progmodes/js.el @@ -686,7 +686,7 @@ This variable is like `sgml-attribute-offset'." (modify-syntax-entry ?$ "_" table) (modify-syntax-entry ?` "\"" table) table) - "Syntax table for `js-mode'.") + "Syntax table for `js-mode' and `js-ts-mode'.") (defvar-local js--quick-match-re nil "Autogenerated regexp used by `js-mode' to match buffer constructs.") @@ -3843,6 +3843,7 @@ Currently there are `js-mode' and `js-ts-mode'." \\<js-ts-mode-map>" :group 'js + :syntax-table js-mode-syntax-table (when (treesit-ready-p 'javascript) ;; Borrowed from `js-mode'. (setq-local prettify-symbols-alist js--prettify-symbols-alist) |