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

            Bug ID: 411508
           Summary: Digraphs and trigraphs in C and C++ are not handled
                    correctly
           Product: kate
           Version: 19.08.0
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: syntax
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: loic.dam...@gmail.com
  Target Milestone: ---

SUMMARY

Digraphs and trigraphs (https://en.wikipedia.org/wiki/Digraphs_and_trigraphs#C)
are not handled correctly

STEPS TO REPRODUCE
1. Copy the folowing code in a C++ file (from
https://twitter.com/lunasorcery/status/1168256179178475520):
int main()
<%
    [](){%>();
}
2. Place the cursor after the closing brace

OBSERVED RESULT
The brace on the second line is highlighted
The code folding "arrow" is on the third line

EXPECTED RESULT
The digraph on the second line is highlighted
The code folding "arrow" is on the second line

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:
Operating System: Arch Linux 
KDE Plasma Version: 5.16.4
KDE Frameworks Version: 5.61.0
Qt Version: 5.13.0
OS Type: 64-bit

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

Reply via email to