Closed monkoose closed 7 years ago
Not true. Read :syn-priority
.
Because from
should be handled differently for import
and raise
.
2. A Keyword has priority over Match and Region items.
KEYWORD > MATCH
Did i miss something?
Yes, you missed this:
1. When multiple Match or Region items start in the same position, the item
defined last has priority.
Ah, you talking about that it didn't overwrite pythonBuiltinFunc? Hm, maybe. I just opened test.py and checked. And now i tested with actual python file. Yes it didn't overwrite - my bad. I think test.py then should be changed.
Why should it be changed?
Oh, you mean the keyword section. Sure.
Because in the test.py file under the section Builtin function we have pythonIdentifier highlighting for almost all builtins. Check it. And actually non-english function and class names didn't recognized at all.
That's a separate issue altogether, and would need a major refactor for proper unicode support.
Sorry. Maybe because of my bad english it's hard for you to understand what i'm trying to say. I repeat. In test.py file all builtin functions cant be recognized and highlighted as pythonIdentifiers.
Completely missed that, sorry.
Should i rename the issue? Because it is actually working as supposed. And problem only in test.py file itsef.
Now it's fixed, thanks.
I dunno who made this change, but now you can't reach pythonBuiltinFunc highlighting group. Because this
syn match pythonIdentifier '\v[a-zA-Z_][a-zA-Z0-9_]*' nextgroup=FunctionParameters
overwrites any of thisWhy do you even change
syn keyword
(that has precedence over match) tosyn match
for builtins?