<table><tr><td style="">gszymaszek created this revision.<br />gszymaszek added a project: Framework: Syntax Hightlighting.<br />Restricted Application added a project: Frameworks.<br />Restricted Application added a subscriber: Frameworks.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D5799" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>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 <a href="http://lesscss.org/features/" class="remarkup-link" target="_blank" rel="noreferrer">“Features of the Less Language”</a>); <a href="https://bugs.kde.org/show_bug.cgi?id=369277" class="remarkup-link" target="_blank" rel="noreferrer">bug 369277 (“LessCSS syntax problem”)</a> is solved.</p>
<p>Other notes:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">“LESSCSS” name should probably be changed to just “Less”</li>
<li class="remarkup-list-item">colours (<tt style="background: #ebebeb; font-size: 13px;">defStyleNum</tt>) have changed a lot in this diff</li>
<li class="remarkup-list-item">I’ve added some CSS properties from <a href="https://www.w3.org/Style/CSS/all-properties" class="remarkup-link" target="_blank" rel="noreferrer">https://www.w3.org/Style/CSS/all-properties</a> and colours from <a href="https://drafts.csswg.org/css-color-3/#svg-color" class="remarkup-link" target="_blank" rel="noreferrer">https://drafts.csswg.org/css-color-3/#svg-color</a>, perhaps they should be added to CSS and SCSS files as well?</li>
</ul>
<p>Not supported:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">invalid properties, like “padding-3” (properties cannot contain digits)</li>
<li class="remarkup-list-item"><tt style="background: #ebebeb; font-size: 13px;">:nth-child</tt> parameters</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R216 Syntax Highlighting</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D5799" rel="noreferrer">https://phabricator.kde.org/D5799</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>data/syntax/less.xml</div></div></div><br /><div><strong>To: </strong>gszymaszek, Framework: Syntax Hightlighting<br /><strong>Cc: </strong>Frameworks, cullmann, vkrause, dhaumann<br /></div>