My favorites | Sign in
Project Home Downloads Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 684: syntax highlighting not working properly in multi-line c macro with comments embeded
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by sunrenj...@gmail.com, Oct 22, 2009
What steps will reproduce the problem?
1. open pn, [file]->[new]->[C/C++].
2. copy in the following code excerpt, see the highlighting of the string.
#define multi_line_macro do {\
	/* a comment */ \
	"string: we are still in the macro!!!"; \
	} while (0);
3. remove the line containing the comment, see the highlighting of the
string again.

What is the expected output? What do you see instead?
The string literal is not highlighted to be part of the macro as expected
if the macro has c-style comments embedded; yet the highlighting becomes
normal when the comment is removed.

What version of the product are you using? On what operating system?
Version: v2.0.10.1010-dizzy on WIN32.

Please provide any additional information below.
just a little bug, yet very confusing.:)
Sign in to add a comment

Powered by Google Project Hosting