Menu

#1080 wrong color for variables (c/c++ editor)

Undefined
invalid
nobody
None
Bug_Report
2021-03-15
2021-03-14
Elena
No

Variables get inconsistent colors, see attached screenshot. They should all get a same color

1 Attachments

Discussion

  • Miguel Gimenez

    Miguel Gimenez - 2021-03-15

    Those green variables have special meaning in C++, if you don't want them marked as keywords then use other names or remove them from the keyword list in Syntax Highlighting

     
  • Teodor Petrov

    Teodor Petrov - 2021-03-15
    • status: open --> invalid
     
  • Teodor Petrov

    Teodor Petrov - 2021-03-15

    This is a feature, but not well implemented one. Until someone implements proper semantic highlighting this is how it works. You can disable the keywords groups, or use the same colour for them as workaround for now.

     
  • Elena

    Elena - 2021-03-15

    I never heard of any 'sIze' or 'end' keywords in c/c++. In fact I can't even find them listed in the keyword list to remove them.

     

    Last edit: Elena 2021-03-15
  • Miguel Gimenez

    Miguel Gimenez - 2021-03-15

    "end" is in keyword set #2. It is not a reserved keyword in C++ sense, but it is often used with standard containers so it is highlighted.

     

Log in to post a comment.