<table><tr><td style="">jpoelen 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/D14632">View Revision</a></tr></table><br /><div><div><p>I don't think using the original word delimiters is a good thing. Let's imagine that c.xml lists the functions of the libc and a language that allows them to be used as <tt style="background: #ebebeb; font-size: 13px;">ffi.C.printf</tt> (luajit for the curious). The separators of the 2 languages are not the same and <tt style="background: #ebebeb; font-size: 13px;">puts'plop'</tt> works for one, but not for the other. If we rely on the C delimiters, it will not work anymore. I think we can find other examples and perhaps counter-examples.</p>
<p>Currently, if we want to keep the word delimiters, we can always create a context in the referenced file (or another syntax file) and make an <tt style="background: #ebebeb; font-size: 13px;">IncludeRule</tt>. It's ugly, the current checker complains if the context is not used, but I don't think that happens in nature. From what I see, the languages that share word lists are either syntactically similar or radically different.</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/D14632">https://phabricator.kde.org/D14632</a></div></div><br /><div><strong>To: </strong>jpoelen, Framework: Syntax Highlighting, cullmann, dhaumann, vkrause<br /><strong>Cc: </strong>kwrite-devel, vkrause, kde-frameworks-devel, LeGast00n, domson, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann<br /></div>