Skip to content

CSS lexer: Add more property names? #2113

@voussoir

Description

@voussoir

Hi, thanks for this great library.

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?

Thank you.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions