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/python.el | |
| parent | 91b8d9b7db47f242cf33f0e99d787c235d761d4b (diff) | |
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/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 0e0898ffe28..ee05862550d 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -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 |
