<table><tr><td style="">nibags edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-5otketrbwe4jqn2/">(Show Details)</a><br />nibags added reviewers: Framework: Syntax Highlighting, cullmann, dhaumann, vkrause, jpoelen.
</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/D17085">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);">When keywords are included from "X" language, the syntax highlighting of the "X" language will not be loaded:<br />
    * The "IncludeRules" rule, from the "X" language, doesn't work.<br />
    * It isn't possible to open files of the "X" language while the text editor is open.<br />
<br />
For example, in the following code, `<IncludeRules context="Escape##JavaScript" />` doesn't work.<br />
```<br />
<list name="keys"><br />
    <include>reserved##JavaScript</include><br />
</list><br />
<br />
<contexts><br />
    <context name="Normal" attribute="Normal Text" lineEndContext="#stay"><br />
        <IncludeRules context="Escape##JavaScript" /><br />
        <IncludeRules context="##C" /><br />
    </context><br />
    ...<br />
```<br />
<br />
Also, this bug can be noticed when opening a SCSS file and then a CSS file; the CSS file is not loaded, since SCSS includes CSS keywords.<br />
<br />
This happens, because when, in `DefinitionData`, if `keywordIsLoaded` is `true`, the `loadHighlighting(...)` method is returned and doesn't read the content of the `<highlighting>` tag.</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/D17085">https://phabricator.kde.org/D17085</a></div></div><br /><div><strong>To: </strong>nibags, Framework: Syntax Highlighting, cullmann, dhaumann, vkrause, jpoelen<br /><strong>Cc: </strong>kwrite-devel, kde-frameworks-devel, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann<br /></div>