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

            Bug ID: 469873
           Summary: Comments within context blocks aren't rendered / don't
                    work like comments
    Classification: Frameworks and Libraries
           Product: frameworks-syntax-highlighting
           Version: 5.106.0
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: syntax
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: rawat.ar...@protonmail.com
                CC: walter.von.entfer...@posteo.net
  Target Milestone: ---

Example:
Try the following in QML:

property string example: "ex"
property string /* a  comment */ example2: "ex"

OBSERVED RESULT
The comment delimiters aren't followed, and the comment is not treated as a
comment, causing the syntax highlighting to break for the line.

The syntax highlighting file has the following context block:
 <context attribute="Normal Text" lineEndContext="#pop" name="Property">
        <WordDetect attribute="Property Type" context="#stay" String="alias" />
        <keyword attribute="Property Type" context="#stay" String="types" />
        <DetectSpaces />
        <DetectIdentifier />
        <DetectChar char=":" context="#pop" />
      </context>

EXPECTED RESULT
The comment is ignored by the syntax-highlighting engine in matching parts of
the context.

SOFTWARE/OS VERSIONS
KDE Frameworks Version: 5.106

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

Reply via email to