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

            Bug ID: 446121
           Summary: C++ problems with LSP highlighting
           Product: frameworks-syntax-highlighting
           Version: 5.86.0
          Platform: Ubuntu Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: syntax
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: h2+b...@fsfe.org
                CC: walter.von.entfer...@posteo.net
  Target Milestone: ---

Created attachment 143970
  --> https://bugs.kde.org/attachment.cgi?id=143970&action=edit
Problems with annotations.

SUMMARY

LSP based syntax highlighting is already a big improvement, but there are
several problems some of which might be problems in the LSP backend, but some
are likely also problems in the frontend.

I have a attached a screenshot with several illustrated problems. I think some
are obvious bugs, but C++ concepts are a bit more tricky and likely not handled
yet, because they are still relatively new.

Regarding C++ concepts, I recommend the following:
1. In their definition, concept names should be treated like types.
2. When they are used as a placeholder for a type, i.e. "concept_name auto
variable_name", then "concept_name auto" should also be highlighted as a type.
3. When they are used as a predicate, i.e. "concept_name<type>" they are
essentially an expression that evaluate to true or false and should thus be
treated as a variable.
4. When they are used in the "intermediate concept syntax", i.e. "template
<concept_name T>", they should get the colour that "typename" usually gets.

SOFTWARE/OS VERSIONS
Kate: Version 21.08.1
Linux: Ubuntu 21.10
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION

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

Reply via email to