python-ts-mode: Fix single-quote string fontification
* lisp/progmodes/python.el (python--treesit-fontify-string): Look for ', not just ", as opening delimiter (bug#61796).
This commit is contained in:
parent
68d753e371
commit
3cae0e3d96
1 changed files with 1 additions and 1 deletions
|
@ -1070,7 +1070,7 @@ fontified."
|
|||
;; Don't highlight string prefixes like f/r/b.
|
||||
(save-excursion
|
||||
(goto-char string-beg)
|
||||
(when (search-forward "\"" string-end t)
|
||||
(when (re-search-forward "[\"']" string-end t)
|
||||
(setq string-beg (match-beginning 0))))
|
||||
(treesit-fontify-with-override
|
||||
string-beg string-end face override start end)))
|
||||
|
|
Loading…
Add table
Reference in a new issue