You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today, pointer-events caught my attention as Pygments does not highlight it. The list of recognized property names is here with 372 entries from the list at w3.org.
I checked the CSS package for Sublime Text and found these 503 entries. Of course, I'm not suggesting that Sublime is the source of truth here, it's simply a convenient point of reference for me. I'd like to understand the discrepancy between these lists. pointer-events is fully cross compatible according to MDN and presumably many other widely used names are on the list of differences.
inset is on w3 as Working Draft but absent from Pygments.
max-lines is on w3 as Working Draft but present in Pygments.
Could more of these names be added to Pygments's lexer, or are they excluded for a reason?
I agree. Best case would be an automatic way to update the list of properties from a web source, like we do for the builtins of several other languages (see the various _xxx_builtins.py modules)
Activity
amitkummer commentedon Apr 16, 2022
These are definitely needed to be added to the lexer.
It also looks like some properties are located in a different list here, which could also be a part of this potential refactoring.
birkenfeld commentedon Apr 16, 2022
I agree. Best case would be an automatic way to update the list of properties from a web source, like we do for the builtins of several other languages (see the various
_xxx_builtins.pymodules)Add more CSS property names (fixes pygments#2113).