diff options
| author | Yuan Fu | 2022-11-22 18:47:47 -0800 |
|---|---|---|
| committer | Yuan Fu | 2022-11-22 19:07:27 -0800 |
| commit | d2ab1c4a9af205bbeeaf5a0b6333797c18e43f86 (patch) | |
| tree | 9cf8ebad37f0f1f1fafa035b8140246333f36380 /lisp/progmodes/python.el | |
| parent | 0ed313642227afdeccf48057eea458edca9d2962 (diff) | |
| download | emacs-d2ab1c4a9af205bbeeaf5a0b6333797c18e43f86.tar.gz emacs-d2ab1c4a9af205bbeeaf5a0b6333797c18e43f86.zip | |
Tweak python-ts-mode fontification (bug#59470)
* lisp/progmodes/python.el (python--treesit-settings): Only fontify
the @ and the identifier of a decorator, not the argument list (if
there is any).
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index af59b8e1467..3a919c8cf20 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -1113,7 +1113,9 @@ fontified." | |||
| 1113 | 1113 | ||
| 1114 | :feature 'decorator | 1114 | :feature 'decorator |
| 1115 | :language 'python | 1115 | :language 'python |
| 1116 | '((decorator) @font-lock-type-face) | 1116 | '((decorator "@" @font-lock-type-face) |
| 1117 | (decorator (call function: (identifier) @font-lock-type-face)) | ||
| 1118 | (decorator (identifier) @font-lock-type-face)) | ||
| 1117 | 1119 | ||
| 1118 | :feature 'type | 1120 | :feature 'type |
| 1119 | :language 'python | 1121 | :language 'python |