D5799: Rebase Less syntax highlighting on SCSS one

Grzegorz Szymaszek noreply at phabricator.kde.org
Wed May 10 18:18:15 UTC 2017


gszymaszek created this revision.
gszymaszek added a project: Framework: Syntax Hightlighting.
Restricted Application added a project: Frameworks.
Restricted Application added a subscriber: Frameworks.

REVISION SUMMARY
  I’ve rebased Less syntax highlighting definitions on those from current SCSS syntax. Valid Less code is now mostly supported (I’ve tested this diff using various code snippets from “Features of the Less Language” <http://lesscss.org/features/>); bug 369277 (“LessCSS syntax problem”) <https://bugs.kde.org/show_bug.cgi?id=369277> is solved.
  
  Other notes:
  
  - “LESSCSS” name should probably be changed to just “Less”
  - colours (`defStyleNum`) have changed a lot in this diff
  - I’ve added some CSS properties from https://www.w3.org/Style/CSS/all-properties and colours from https://drafts.csswg.org/css-color-3/#svg-color, perhaps they should be added to CSS and SCSS files as well?
  
  Not supported:
  
  - invalid properties, like “padding-3” (properties cannot contain digits)
  - `:nth-child` parameters

REPOSITORY
  R216 Syntax Highlighting

REVISION DETAIL
  https://phabricator.kde.org/D5799

AFFECTED FILES
  data/syntax/less.xml

To: gszymaszek, #framework_syntax_hightlighting
Cc: #frameworks, cullmann, vkrause, dhaumann
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20170510/0706bebe/attachment.html>


More information about the Kde-frameworks-devel mailing list