diff options
| author | Kai Ma | 2022-12-04 06:15:42 +0800 |
|---|---|---|
| committer | Yuan Fu | 2022-12-13 18:05:48 -0800 |
| commit | fafcf02c856ef8fd712ff75e8999dfb0f6d97f07 (patch) | |
| tree | e8b4dd4f38f96f66586e53d9da905225b77b738b /lisp/progmodes/python.el | |
| parent | 91b8d9b7db47f242cf33f0e99d787c235d761d4b (diff) | |
| download | emacs-fafcf02c856ef8fd712ff75e8999dfb0f6d97f07.tar.gz emacs-fafcf02c856ef8fd712ff75e8999dfb0f6d97f07.zip | |
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'." | |||
| 6619 | "Major mode for editing Python files, using tree-sitter library. | 6619 | "Major mode for editing Python files, using tree-sitter library. |
| 6620 | 6620 | ||
| 6621 | \\{python-ts-mode-map}" | 6621 | \\{python-ts-mode-map}" |
| 6622 | :syntax-table python-mode-syntax-table | ||
| 6622 | (when (treesit-ready-p 'python) | 6623 | (when (treesit-ready-p 'python) |
| 6623 | (treesit-parser-create 'python) | 6624 | (treesit-parser-create 'python) |
| 6624 | (setq-local treesit-font-lock-feature-list | 6625 | (setq-local treesit-font-lock-feature-list |