<table><tr><td style="">nibags created this revision.<br />nibags added reviewers: Framework: Syntax Highlighting, cullmann, dhaumann.<br />Herald added projects: Kate, Frameworks.<br />Herald added subscribers: kde-frameworks-devel, kwrite-devel.<br />nibags requested review of this revision.
</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/D18746">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>When <tt style="background: #ebebeb; font-size: 13px;">CMAKE_CURRENT_SOURCE_DIR</tt> and <tt style="background: #ebebeb; font-size: 13px;">CMAKE_CURRENT_BINARY_DIR</tt> are the same directory, the "data/generators/generate-php.pl" script creates the <tt style="background: #ebebeb; font-size: 13px;">*-php.xml</tt> files in "data/syntax/", therefore, adding them in <tt style="background: #ebebeb; font-size: 13px;">defs</tt> causes them to be loaded twice and warnings of duplicate contexts are shown when compiling:</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">[ 8%] Generating index.katesyntax
"/home/nibaldo/test/syntax-highlighting/data/syntax/html-php.xml" Duplicate context: "Start"
"/home/nibaldo/test/syntax-highlighting/data/syntax/html-php.xml" Duplicate context: "FindHTML"
"/home/nibaldo/test/syntax-highlighting/data/syntax/html-php.xml" Duplicate context: "FindEntityRefs"
"/home/nibaldo/test/syntax-highlighting/data/syntax/html-php.xml" Duplicate context: "FindPEntityRefs"
"/home/nibaldo/test/syntax-highlighting/data/syntax/html-php.xml" Duplicate context: "FindAttributes"
"/home/nibaldo/test/syntax-highlighting/data/syntax/html-php.xml" Duplicate context: "FindDTDRules"
"/home/nibaldo/test/syntax-highlighting/data/syntax/html-php.xml" Duplicate context: "Comment"
"/home/nibaldo/test/syntax-highlighting/data/syntax/html-php.xml" Duplicate context: "CDATA"
"/home/nibaldo/test/syntax-highlighting/data/syntax/html-php.xml" Duplicate context: "PI"
"/home/nibaldo/test/syntax-highlighting/data/syntax/html-php.xml" Duplicate context: "Doctype"
"/home/nibaldo/test/syntax-highlighting/data/syntax/html-php.xml" Duplicate context: "Doctype Internal Subset"
"/home/nibaldo/test/syntax-highlighting/data/syntax/html-php.xml" Duplicate context: "Doctype Markupdecl"
"/home/nibaldo/test/syntax-highlighting/data/syntax/html-php.xml" Duplicate context: "Doctype Markupdecl DQ"
"/home/nibaldo/test/syntax-highlighting/data/syntax/html-php.xml" Duplicate context: "Doctype Markupdecl SQ"
"/home/nibaldo/test/syntax-highlighting/data/syntax/html-php.xml" Duplicate context: "El Open"
"/home/nibaldo/test/syntax-highlighting/data/syntax/html-php.xml" Duplicate context: "El Close"
"/home/nibaldo/test/syntax-highlighting/data/syntax/html-php.xml" Duplicate context: "El Close 2"
"/home/nibaldo/test/syntax-highlighting/data/syntax/html-php.xml" Duplicate context: "El Close 3"
"/home/nibaldo/test/syntax-highlighting/data/syntax/html-php.xml" Duplicate context: "CSS"
"/home/nibaldo/test/syntax-highlighting/data/syntax/html-php.xml" Duplicate context: "CSS content"
"/home/nibaldo/test/syntax-highlighting/data/syntax/html-php.xml" Duplicate context: "JS"
"/home/nibaldo/test/syntax-highlighting/data/syntax/html-php.xml" Duplicate context: "JS content"
"/home/nibaldo/test/syntax-highlighting/data/syntax/html-php.xml" Duplicate context: "JS comment close"
"/home/nibaldo/test/syntax-highlighting/data/syntax/html-php.xml" Duplicate context: "Value"
"/home/nibaldo/test/syntax-highlighting/data/syntax/html-php.xml" Duplicate context: "Value NQ"
"/home/nibaldo/test/syntax-highlighting/data/syntax/html-php.xml" Duplicate context: "Value DQ"
"/home/nibaldo/test/syntax-highlighting/data/syntax/html-php.xml" Duplicate context: "Value SQ"
"/home/nibaldo/test/syntax-highlighting/data/syntax/html-php.xml" Duplicate context: "FindPHP"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "Base"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "FindSelector"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "FindFunctions"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "FindValues"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "Annotation"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "FindUnits"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "FindStrings"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "FindComments"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "Error"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "IsComments"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "SelectAtRule"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "@keyframes"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "Within-@keyframes"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "@viewport"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "Within-@viewport"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "@font-face"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "Within-@font-face"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "@page"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "SelectorPseudo-@page"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "Within-@page"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "IsProperty"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "NestedAtRule"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "NestedBase"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "AtRule"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "UnknownAtRule"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "AtRuleValue"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "SelectorAttr"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "SelectorAttrValue"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "SelectorPseudo"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "SelectorPseudoElements"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "SelectorPseudoValueSelector"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "SelectorPseudoValueCloseSelector"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "SelectorPseudoValue"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "SelectorPseudoValueClose"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "Comment"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "RuleSet"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "Rule"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "IsVariable"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "RuleParameters"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "Function"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "FunctionVar"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "FunctionCalc"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "NestedCalc"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "Calc"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "FunctionUrl"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "UrlValue"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "FunctionParameters"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "StringDQ"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "StringSQ"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "InsideString"
"/home/nibaldo/test/syntax-highlighting/data/syntax/css-php.xml" Duplicate context: "FindPHP"
"/home/nibaldo/test/syntax-highlighting/data/syntax/javascript-php.xml" Duplicate context: "Shebang"
"/home/nibaldo/test/syntax-highlighting/data/syntax/javascript-php.xml" Duplicate context: "Shebang Line"
"/home/nibaldo/test/syntax-highlighting/data/syntax/javascript-php.xml" Duplicate context: "Normal"
"/home/nibaldo/test/syntax-highlighting/data/syntax/javascript-php.xml" Duplicate context: "Object Member"
"/home/nibaldo/test/syntax-highlighting/data/syntax/javascript-php.xml" Duplicate context: "NoRegExp"
"/home/nibaldo/test/syntax-highlighting/data/syntax/javascript-php.xml" Duplicate context: "Conditional Expression"
"/home/nibaldo/test/syntax-highlighting/data/syntax/javascript-php.xml" Duplicate context: "Object"
"/home/nibaldo/test/syntax-highlighting/data/syntax/javascript-php.xml" Duplicate context: "FindStrings"
"/home/nibaldo/test/syntax-highlighting/data/syntax/javascript-php.xml" Duplicate context: "String"
"/home/nibaldo/test/syntax-highlighting/data/syntax/javascript-php.xml" Duplicate context: "String SQ"
"/home/nibaldo/test/syntax-highlighting/data/syntax/javascript-php.xml" Duplicate context: "Escape"
"/home/nibaldo/test/syntax-highlighting/data/syntax/javascript-php.xml" Duplicate context: "Character Escape"
"/home/nibaldo/test/syntax-highlighting/data/syntax/javascript-php.xml" Duplicate context: "Template"
"/home/nibaldo/test/syntax-highlighting/data/syntax/javascript-php.xml" Duplicate context: "RawTemplate"
"/home/nibaldo/test/syntax-highlighting/data/syntax/javascript-php.xml" Duplicate context: "Substitution"
"/home/nibaldo/test/syntax-highlighting/data/syntax/javascript-php.xml" Duplicate context: "FindComments"
"/home/nibaldo/test/syntax-highlighting/data/syntax/javascript-php.xml" Duplicate context: "Comment"
"/home/nibaldo/test/syntax-highlighting/data/syntax/javascript-php.xml" Duplicate context: "Multi/inline Comment"
"/home/nibaldo/test/syntax-highlighting/data/syntax/javascript-php.xml" Duplicate context: "Regular Expression"
"/home/nibaldo/test/syntax-highlighting/data/syntax/javascript-php.xml" Duplicate context: "Regular Expression Character Class"
"/home/nibaldo/test/syntax-highlighting/data/syntax/javascript-php.xml" Duplicate context: "(regex caret first check)"
"/home/nibaldo/test/syntax-highlighting/data/syntax/javascript-php.xml" Duplicate context: "(charclass caret first check)"
"/home/nibaldo/test/syntax-highlighting/data/syntax/javascript-php.xml" Duplicate context: "region_marker"
"/home/nibaldo/test/syntax-highlighting/data/syntax/javascript-php.xml" Duplicate context: "FindPHP"
[ 9%] Generating qrc_theme-data.cpp
[ 10%] Generating qrc_syntax-data.cpp
/home/nibaldo/test/syntax-highlighting/data/syntax-data.qrc: Warning: potential duplicate alias detected: 'html-php.xml'
/home/nibaldo/test/syntax-highlighting/data/syntax-data.qrc: Warning: potential duplicate alias detected: 'css-php.xml'
/home/nibaldo/test/syntax-highlighting/data/syntax-data.qrc: Warning: potential duplicate alias detected: 'javascript-php.xml'</pre></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R216 Syntax Highlighting</div></div></div><br /><div><strong>BRANCH</strong><div><div>data-cmakelists</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D18746">https://phabricator.kde.org/D18746</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>data/CMakeLists.txt</div></div></div><br /><div><strong>To: </strong>nibags, Framework: Syntax Highlighting, cullmann, dhaumann<br /><strong>Cc: </strong>kwrite-devel, kde-frameworks-devel, hase, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann<br /></div>