aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorYuan Fu2022-10-31 15:27:40 -0700
committerYuan Fu2022-11-01 12:54:51 -0700
commita3651d3237e91f788211e507d61c2dcf886c185f (patch)
treedacf9c8a7d580c572ccfa469ec7177caafa1c868 /lisp/progmodes/python.el
parent4ef50ccd3f8bc177ef6dd7183a9268bb8057f064 (diff)
downloademacs-a3651d3237e91f788211e507d61c2dcf886c185f.tar.gz
emacs-a3651d3237e91f788211e507d61c2dcf886c185f.zip
Query on the root node in tree-sitter font-lock
Rather than querying on the smallest node that spans START to END, we query on the root node between START to END. * lisp/progmodes/python.el (python--treesit-fontify-string): Accept the string rather than the quote node. (python--treesit-settings): Capture the string rather than the quote node. * lisp/treesit.el (treesit-font-lock-fontify-region): Query the root node rather than the smallest node.
Diffstat (limited to 'lisp/progmodes/python.el')
0 files changed, 0 insertions, 0 deletions