Bug 383348

Summary: Single comment tag disappear from syntax/php.xml file
Product: [Frameworks and Libraries] frameworks-syntax-highlighting Reporter: Szyk Cech <szyk100>
Component: syntaxAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: minor CC: cullmann
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:

Description Szyk Cech 2017-08-10 10:03:01 UTC
Hi!
I overloaded KSyntaxHighlighting::SyntaxHighlighter::setDefinition in order to get single comment characters from KSyntaxHighlighting::Definition::filePath() file. I need this in order to make easier comment/uncomment code in my editor. For most files it works as expected, but it fail for php file definition. Surprisingly it this file in source directory has single line comment! But I discovery, that file in KF5SyntaxHighlighting.dll is different!

My opinion is that php.xml given from KF5SyntaxHighlighting.dll should have single comment as it have in sources.

thanks and regards
Szyk Cech
Comment 1 Christoph Cullmann 2020-03-14 15:38:26 UTC
Hmm, the php.xml is packed into the library 1:1.

There are a few syntax files generated, that e.g. include PHP, like html-php.xml, they have different comment directives, but they match their main language.

Btw., the library has no accessors in Definition to get the comment markers.