Skip to content

CSS, SCSS: update properties, functions, at-rules and more highlighting

jonathan poelen requested to merge jpoelen/syntax-highlighting:ft_css into master

New highlighting:

  • Vendor Properties: properties prefixed with -webkit-, -moz, -o- or -ms-
  • At Rule Text: text in @rules text
  • Block Symbol: { and }
  • Unknown Function
  • Calc Constant: pi, inifity, e and NaN in calc()
  • Condition Open/Close: ( and ) with @media and @supports
  • Condition Property: properties in @media/@supports (prop: value)
  • Media Type
  • Property Separator: : in prop: value;
  • Named Color
  • Selector Symbol
  • Attribute Name: name in [name=value]
  • Attribute Operator symbols and operator (s/i) in [name=value i]

Also contains a script capable of extracting properties and functions from an mdn or sass repository and updating the syntaxes.

Merge request reports

Loading