diff options
author | Yuan Fu <casouri@gmail.com> | 2022-11-15 02:22:41 -0800 |
---|---|---|
committer | Yuan Fu <casouri@gmail.com> | 2022-11-15 02:22:41 -0800 |
commit | e0760599b045a7ef3828ae4b624246b6beec2e75 (patch) | |
tree | c9b144b2fd9418f350ba5590a96a49e2a76f7f20 /lisp/progmodes/python.el | |
parent | 34e50dc4a23505dce0499f120477e2e1a1327432 (diff) | |
download | emacs-e0760599b045a7ef3828ae4b624246b6beec2e75.tar.gz emacs-e0760599b045a7ef3828ae4b624246b6beec2e75.tar.bz2 emacs-e0760599b045a7ef3828ae4b624246b6beec2e75.zip |
Remove the contextual hack in tree-sitter fontification
We now have a better facility that can replace the contextual
hack. The C part is in the previous commit, and the Lisp part work
will be in the next commit.
* doc/lispref/modes.texi (Parser-based Font Lock): Update manual.
* lisp/progmodes/js.el (js--treesit-font-lock-settings)
* lisp/progmodes/python.el (python--treesit-settings)
* lisp/progmodes/ts-mode.el (ts-mode--font-lock-settings): Stop marking
contextual nodes.
* lisp/treesit.el (treesit-font-lock-contextual-post-process): Remove
function.
(treesit-font-lock-fontify-region): Remove code processing contextual
nodes.
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r-- | lisp/progmodes/python.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index a5d02d0fcba..7919484e096 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -1047,8 +1047,7 @@ be fontified." :language 'python :override t ;; TODO Document on why we do this. - '((string :anchor "\"" @python--treesit-fontify-string) - (string) @contextual) + '((string :anchor "\"" @python--treesit-fontify-string)) :feature 'string-interpolation :language 'python |