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

            Bug ID: 452964
           Summary: Kate syntax coloring .xml <item> containing space
           Product: frameworks-syntax-highlighting
           Version: unspecified
          Platform: unspecified
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: syntax
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

Created attachment 148347
  --> https://bugs.kde.org/attachment.cgi?id=148347&action=edit
Syntax color example

In a user defined Kate .xml syntax file, an item containing  a space does not
process correctly, for example

<item>for binary append</item> 

 When the weakDeliminator attribute is used in the .xml file to instruct the
parser to ignore space as a delimiter in the <item> , as here,

<keywords casesensitive="0" weakDeliminator="' '" />

the above <item> text in a document, for example,

open file for binary append as f1 

is not properly colored if preceded or succeeded by a space. All syntax
coloring in the document for items is lost  if the <item> is delimited by
space.








STEPS TO REPRODUCE
1.  Add 
<item>for binary append</item>
to a Kate user-defined syntax file list.
2. Open Kate, add
 open file for binary append as f1 
to an appropriate document.
3. 

OBSERVED RESULT

 for binary append 
is not colored

EXPECTED RESULT
 for binary append 
should be colored

SOFTWARE/OS VERSIONS
Windows:  10
macOS: 
Linux/KDE Plasma: Fedora 36 beta
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

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

Reply via email to