<table><tr><td style="">cullmann closed this revision.<br />cullmann added a comment.
</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/D14274">View Revision</a></tr></table><br /><div><div><p>Git commit e1c3d16a35ddae90de6e457a31f54d899abb84c8 by Christoph Cullmann, on behalf of Nibaldo González.<br />
Committed on 15/08/2018 at 18:22.<br />
Pushed by cullmann into branch 'master'.</p>

<p>Modelines: add byte-order-mark & small fixes</p>

<p>Summary:<br />
Changes:</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">Add missing keyword: <tt style="background: #ebebeb; font-size: 13px;">byte-order-mark</tt> (there is only "byte-order-marker" and "bom"). Obtained from: <a href="https://docs.kde.org/stable5/en/applications/katepart/config-variables.html" class="remarkup-link" target="_blank" rel="noreferrer">https://docs.kde.org/stable5/en/applications/katepart/config-variables.html</a></li>
<li class="remarkup-list-item">Remove keywords delimiters "*" and "+", because in the "RemoveSpacesOptions" list, the keywords "*" and "+" are not highlighted.</li>
<li class="remarkup-list-item">Fix ";" in the "RemoveSpaces" context ("remove-trailing-spaces" variable). The character ";" it is not highlighted as in the rest of the variables, since when writing a value, the context ends.</li>
</ul>

<p><a href="https://phabricator.kde.org/F6128802" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">F6128802: modelines-spaces.png</a></p>

<ul class="remarkup-list">
<li class="remarkup-list-item">For a strange reason, the use of <tt style="background: #ebebeb; font-size: 13px;"><IncludeRules context="##Modelines"/></tt>, in others files, causes the line continuation character ("\") to be highlighted as <tt style="background: #ebebeb; font-size: 13px;">dsNormal</tt>. This is solved by removing the LineContinue rule in the "Normal" context in Modelines. I consider the LineContinue & DetectSpaces rules to be unnecessary in the "Normal" context, so I've eliminated them.</li>
</ul>

<p><a href="https://phabricator.kde.org/F6128805" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">F6128805: modelines-linecont.png</a></p>

<p>I was going to add a test file, but there are errors when generating the html and ref files, even with the unmodified modelines.xml file :S</p>

<p>Reviewers: turbov, dhaumann, cullmann, vkrause, <a href="https://phabricator.kde.org/tag/kate/" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">#kate</a></p>

<p>Reviewed By: cullmann, <a href="https://phabricator.kde.org/tag/kate/" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">#kate</a></p>

<p>Subscribers: kwrite-devel, kde-frameworks-devel</p>

<p>Tags: <a href="https://phabricator.kde.org/tag/kate/" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">#kate</a>, <a href="https://phabricator.kde.org/tag/frameworks/" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">#frameworks</a></p>

<p>Differential Revision: <a href="https://phabricator.kde.org/D14274" class="remarkup-link" target="_blank" rel="noreferrer">https://phabricator.kde.org/D14274</a></p>

<p>A  +10   -0    autotests/folding/modelines.py.fold<br />
A  +17   -0    autotests/html/modelines.py.html<br />
A  +10   -0    autotests/input/modelines.py<br />
A  +10   -0    autotests/reference/modelines.py.ref<br />
M  +7    -4    data/syntax/modelines.xml</p>

<p><a href="https://commits.kde.org/syntax-highlighting/e1c3d16a35ddae90de6e457a31f54d899abb84c8" class="remarkup-link" target="_blank" rel="noreferrer">https://commits.kde.org/syntax-highlighting/e1c3d16a35ddae90de6e457a31f54d899abb84c8</a></p></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/D14274">https://phabricator.kde.org/D14274</a></div></div><br /><div><strong>To: </strong>nibags, turbov, dhaumann, cullmann, vkrause, Kate<br /><strong>Cc: </strong>kwrite-devel, kde-frameworks-devel, michaelh, kevinapavew, ngraham, bruns, demsking, cullmann, sars, dhaumann<br /></div>