<table><tr><td style="">nibags edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-3i72cexzw3vnr6x/">(Show Details)</a><br />nibags added reviewers: cullmann, dhaumann, Framework: Syntax Highlighting.
</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/D25503">View Revision</a></tr></table><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">In **javascript.xml**, keywords are moved from TypeScript. TypeScript and QML highlighters require JavaScript, therefore the content of **javascript.xml** is grouped into contexts for better inclusion. For example, keywords of built-in clases aren't included in QML and redundant content is excluded in TypeScript.<br />
<br />
**JavaScript:**<br />
* Move keywords of built-in classes and functions from **typescript.xml** to **javascript.xml**.<br />
* Update list of classes.<br />
* Highlight Number, Math and DOM constants anywhere in the code.<br />
{F7781514}<br />
* After a string, just highlight valid regular expressions.<br />
{F7781515}<br />
* Numbers: highlight float of type `2e10` (since this form isn't highlighted by the `Float` rule), correctly highlight Bigint in hexadecimal, octale and binary.<br />
{F7781517}<br />
* Highlight all brackets `(){}[]` with "Normal Text", not with "Symbol", for better consistency in Solorized schemes.<br />
{F7781518}<br />
* Object highlighting is inconsistent: Before, they are highlighted as "Objects" (dsVariable), but only when they are before `.`. Now they will always be highlighted as "Normal text". Functions are now highlighted with "dsFunction", not with "dsAttribute" as the attributes.<br />
{F7781519}<br />
<br />
**TypeScript:**<br />
* Adapt to JavaScript changes: highlight brackets `{}` with "Normal Text", not with "Symbol".<br />
* Some minor fixes.<br />
<br />
**JavaScript React (JSX) & TypeScript React (TSX):**<br />
* Adapt to JavaScript changes: highlight brackets `{}` with "Normal Text", not with "Symbol".<br />
* Now the highlighter is more strict in detecting tag names, if the user writes an invalid name, the tag is simply not highlighted (it was previously highlighted as "Error"). This avoids a possible incorrect highlighting, between type assertion and tag.<br />
<br />
**QML:**<br />
* Adapt to changes in JavaScript.<br />
* Fix the highlighting of conditional expressions `a ? b : c`. This bug is produced by D23272, the text in conditional expressions is incorrectly highlighted as a parameter.<br />
{F7781520}<br />
* Use JavaScript escapes in string, via IncludeRules.<br />
<br />
**CoffeeScript:**<br />
* Adapt to changes in JavaScript (JS in embedded code): use "Normal" attribute in curly brackets and regular expressions after templates.</span></div></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/D25503">https://phabricator.kde.org/D25503</a></div></div><br /><div><strong>To: </strong>nibags, cullmann, dhaumann, Framework: Syntax Highlighting<br /><strong>Cc: </strong>kwrite-devel, kde-frameworks-devel, LeGast00n, GB_2, domson, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann<br /></div>