diff options
| author | Jostein Kjønigsen | 2025-05-05 09:45:36 +0200 |
|---|---|---|
| committer | Michael Albinus | 2025-05-05 09:45:36 +0200 |
| commit | 9261d353ccc0f94da8049faaade025f338d75354 (patch) | |
| tree | 7bc125a331a6f5626d710f41dc9ada80e874ae80 /lisp/progmodes/python.el | |
| parent | 7cb7e96a5cca6778054cf74fd2c7548ca40f0691 (diff) | |
| download | emacs-9261d353ccc0f94da8049faaade025f338d75354.tar.gz emacs-9261d353ccc0f94da8049faaade025f338d75354.zip | |
Fix test-regressions in python-ts-mode
* lisp/progmodes/python.el (python--treesit-settings): Use more
specific selectors for constants.
* test/lisp/progmodes/python-tests.el
(python-ts-mode-nested-types-face-1)
(python-ts-mode-union-types-face-1)
(python-ts-mode-union-types-face-2): None is now a constant.
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 b057e2b24f0..96aa473e9e3 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -1273,7 +1273,9 @@ fontified." | |||
| 1273 | :feature 'constant | 1273 | :feature 'constant |
| 1274 | :language 'python | 1274 | :language 'python |
| 1275 | '([(true) (false) (none)] @font-lock-constant-face | 1275 | '([(true) (false) (none)] @font-lock-constant-face |
| 1276 | ((identifier) @font-lock-constant-face | 1276 | ((assignment (identifier) @font-lock-constant-face) |
| 1277 | (:match "\\`[A-Z][A-Z0-9_]+\\'" @font-lock-constant-face)) | ||
| 1278 | ((call arguments: (argument_list (identifier) @font-lock-constant-face)) | ||
| 1277 | (:match "\\`[A-Z][A-Z0-9_]+\\'" @font-lock-constant-face)) | 1279 | (:match "\\`[A-Z][A-Z0-9_]+\\'" @font-lock-constant-face)) |
| 1278 | ((attribute | 1280 | ((attribute |
| 1279 | attribute: (identifier) @font-lock-constant-face) | 1281 | attribute: (identifier) @font-lock-constant-face) |