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

            Bug ID: 398393
           Summary: Alerts (TODO, FIXME...) are TRUE for isCode()
           Product: frameworks-syntax-highlighting
           Version: 5.50.0
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: syntax
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: fl...@mailoo.org
  Target Milestone: ---

When using the Javascript scripting API from Kate, you can test whether a part
of the document is part of the code (and not, say, comments) using the function
isCode().

However, when comments contain alert words such as FIXME, TODO or NOTE (defined
in data/syntax/alert.xml), the alert words are TRUE for isCode() and comments
are thus not appropriately ignored.

I believe this a bug as I don't see languages or contexts where such alert
words would not be contained in comments and be actually part of the code. I
thus believe the correct behaviour should be to return FALSE for isCode() for
those alert words.

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

Reply via email to