Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Kermit attacks 7280! or hilighting rules are highlighting words it shouldn't...

(1/6) > >>

ouch:
words like "size", "erase" and "function"

wxWidgets commands uses some of these words. for example with wxstrings:

test.erase();

the word erase is green.

the word erase is a valid standard highlighting term yes, but not in this context.

thomas:
Yes, that is right. This member is one of the "STL compatibility" functions or whatever wxWidgets calls them.

As of revision 7263/7264, most (hopefully all) of STL, C++03, and C++0x has been added to the lexer.

Obviously the downside is that if something looks like STL, it is highlighted as such.

ouch:
are there any plans to fix this?

just checking if its surrounded by a space between the keyword and other stuff would help greatly.

GeO:

--- Quote from: ouch on July 07, 2011, 05:05:42 pm ---are there any plans to fix this?

--- End quote ---

Just set "User keyword" to black and uncheck bold, and you're done.

Greets GeO

[attachment deleted by admin]

ouch:
Well that would mean they (and other stuff) wouldn't get highlighted at all. STL commands should get highlighted but not if the words are actually members and variables in a specific context.

But I think just checking for spaces would stop most of the highlighting errors.

Navigation

[0] Message Index

[#] Next page

Go to full version