SCSS Highlighting - Variables

Issue #1321 new
Stacy Kvernmo
created an issue

When declaring a variable in scss the class is .nv but when calling it later it gets the .nt class. I would have expected the same .nv class.


I just started working with Pygments and have noticed a few css/scss issues so I am going to document these as they show up :)

Comments (2)

  1. Georg Brandl repo owner

    Looking at these issues, I think the lexer is too complex for its own good. It tries to differentiate selectors and CSS properties, which is easy with plain CSS (clearly separated by braces, minimal nesting, no meta syntax like @if) but complex here.

    I think I'll overhaul the lexer completely to be much less stateful and instead match properties from a whitelist of names.

  2. Log in to comment