Red Hat Bugzilla – Bug 995932
Syntax Highlighting not working when Language and Module names differ
Last modified: 2014-07-13 11:28:23 EDT
Description of problem:
In trying to build the Developer Guide, it fails and I get the error
undefined language: Cplusplus at /usr/share/perl5/vendor_perl/Syntax/Highlight/Engine/Kate.pm line 638.
cannot create plugin for language 'Cplusplus'
Performing a grep on "Cplusplus" reveals nothing, but "language="C++"" shows it being used in things like
<programlisting language="C++"><xi:include parse="text" href="extras/fruit/fruit2.cc" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
The book was last built approximately 6 months ago and this error was not present then.
Version-Release number of selected component (if applicable):
Every time as far as I can gather. Jaromir also had the same error on the User Guide.
Steps to Reproduce:
1. Add the above language tag to a doc
2. Attempt to brew with publican.
3. Enjoy the errors!
HSS-QE has reviewed and declined this request. QE for this bug will be handled by IED.
*** Bug 997213 has been marked as a duplicate of this bug. ***
Marked Bug # 997213 as a dupe because in a similar fashion it appears "INI Files" was accepted as a valid value in 3.1.5 but isn't in 3.2.0 (based on Kate.pm it still should be though).
Bug was in using Module name as language name, that only works if they match. e.g. XML is the language and the module, so that works.
42f4d93..4980426 HEAD -> devel
Checked with a local installation. Builds fine and the C++/Cplusplus parts looks fine.
*** Bug 1004027 has been marked as a duplicate of this bug. ***