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

--- Comment #4 from Nibaldo G. <nibg...@gmail.com> ---
In the "PHP/PHP" highlighter, the main context is:

<context name="start" lineEndContext="#stay" attribute="Normal Text">
    <RegExpr context="phpsource" attribute="Keyword" String="&lt;\?(?:=|php)?"
insensitive="true" />
    <Detect2Chars attribute="Keyword" context="#pop" char="?" char1="&gt;" />
</context>


The script that generates "PHP (HTML)" inserts these rules in all contexts of
the "HTML" highlighter.

Basically, in both "PHP/PHP" and "PHP (HTML)", to write PHP code you have to
start with <? , <?= or <?php. The difference between "PHP (HTML)" and "PHP" is
that outside the blocks <? ... ?>, the first one also highlights the HTML code.

I guess the following:
You may be using a custom "PHP/PHP" highlighter and after updating KDE
Frameworks you are using the major version, which is the built-in one. Check
the directories "$HOME/.local/share/org.kde.syntax-highlighting/syntax" and
"/usr/share/org.kde.syntax-highlighting/syntax" if there are any XML file for
PHP. Also check the old directories: "$HOME/.local/share/katepart5/syntax" and
"/usr/share/katepart5/syntax".

I make this assumption since KDE Frameworks 5.75 was released on Oct 10, 2020
and prior to that date only minor updates have been made to the "PHP/PHP"
highlighter:

 
https://invent.kde.org/frameworks/syntax-highlighting/-/commits/master/data/syntax/php.xml

Also, I remember 2 years ago there was a bug that showed hidden highlighters in
the syntax highlighting selection menu.

 
https://invent.kde.org/frameworks/ktexteditor/-/commit/bb5f34d7224d0b4d891cdf5d804e2fe515d8dc79


You could also attach example files where you experience the problem along with
snapshots, so it could be more clear about the problem.

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

Reply via email to