https://bugs.kde.org/show_bug.cgi?id=400719

            Bug ID: 400719
           Summary: customized syntax highlighting XML file has no effect
                    any more
           Product: frameworks-syntax-highlighting
           Version: 5.50.0
          Platform: Gentoo Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: framework
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: math...@public-ip.org
  Target Milestone: ---

SUMMARY
My customized syntax highlighting file latex.xml has no effect on the editor's
output anymore, not in kate, kile nor kwrite. I had made two changes to the
standard latex.xml which were working until now. Since last upgrade, I assume
it has been the syntax-highlighting-50.0 package from frameworks, this
modification ofthe syntax highlighting xml file has no effect anymore.

STEPS TO REPRODUCE
1. Put customized latex syntax highlighting xml file into
~/.local/share/org.kde.syntax-highlighting/syntax/
2. Open any tex file with editor (kate/kile).

OBSERVED RESULT
See an editor window with standard latex syntax highlighting.

EXPECTED RESULT
See an editor window with latex syntax highlighting as defined in the
customized file.

SOFTWARE VERSIONS
(available in About System)
KDE Plasma Version: KF/plasma-5.50, kde-plasma/plasma-meta-5.13.5
KDE Frameworks Version: 5.50.0
Qt Version: 5.11.1

ADDITIONAL INFORMATION
The purpose of the changes to latex.xml was to show also the bracketed option
content of \footcite macros and the content of \footnotes in a different color
than normal text. The way to achieve this was to apply the "FancyLabel" context
instead of "Label" also to \footcite macros (as it was for /footcites macros)
and to define footnote contents als "Option Text" instead of normal text. 
See diff between custom latex.xml and standard latex.xml
@13c13
<         <RegExpr
String="\\(cite|citet|citep|nocite|Cite|parencite|Parencite|footcite|Footcite|textcite|Textcite|supercite|autocite|Autocite|citeauthor|Citeauthor|citetitle|citeyear|citeurl|nocite|fullcite|footfullcite)(?=[^a-zA-Z])"
attribute="Structure" context="FancyLabel"/>
---
>         <RegExpr 
> String="\\(cite|citet|citep|nocite|Cite|parencite|Parencite|footcite|Footcite|textcite|Textcite|supercite|autocite|Autocite|citeauthor|Citeauthor|citetitle|citeyear|citeurl|nocite|fullcite|footfullcite)(?=[^a-zA-Z])"
>  attribute="Structure" context="Label"/>

@84c84
<       <context name="FootnotingInside" attribute="Option Text"
lineEndContext="#stay">
---
>       <context name="FootnotingInside" attribute="Normal Text" 
> lineEndContext="#stay">

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to