mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-09 15:50:40 -08:00
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.
This commit is contained in:
parent
7cb7e96a5c
commit
9261d353cc
2 changed files with 26 additions and 6 deletions
|
|
@ -1273,7 +1273,9 @@ fontified."
|
|||
:feature 'constant
|
||||
:language 'python
|
||||
'([(true) (false) (none)] @font-lock-constant-face
|
||||
((identifier) @font-lock-constant-face
|
||||
((assignment (identifier) @font-lock-constant-face)
|
||||
(:match "\\`[A-Z][A-Z0-9_]+\\'" @font-lock-constant-face))
|
||||
((call arguments: (argument_list (identifier) @font-lock-constant-face))
|
||||
(:match "\\`[A-Z][A-Z0-9_]+\\'" @font-lock-constant-face))
|
||||
((attribute
|
||||
attribute: (identifier) @font-lock-constant-face)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue