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

            Bug ID: 459972
           Summary: non breaking space prevent keywords highlighting in
                    comments
    Classification: Frameworks and Libraries
           Product: frameworks-syntax-highlighting
           Version: 5.98.0
          Platform: Debian unstable
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: syntax
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: xav...@alternatif.org
                CC: walter.von.entfer...@posteo.net
  Target Milestone: ---

Syntax highlighting doesn't work if a non-breaking space follow a keyword in
comments. However, it works well if  a non-breaking space is before a keyword.
Same behaviour in code. May be this is intentional for code, but in comments
with keywords like TODO, FIXME and so on, I find this behaviour annoying.

Tested with Perl, Bash, Python and C.

To see sample cases in Perl, try this:

#! /usr/bin/perl
#
# highlighted:
#TODO
#[normal space]TODO
#[normal space]TODO[normal space]
#[non breaking space here]TODO
#[non breaking space here]TODO[normal space]
#
# not highlighted:
#TODO[non breaking space here]
#[normal space]TODO[non breaking space here]

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

Reply via email to