From kdevelop-bugs Wed May 23 21:56:25 2012 From: =?UTF-8?Q?Nicol=C3=A1s=20Alvarez=20?= Date: Wed, 23 May 2012 21:56:25 +0000 To: kdevelop-bugs Subject: [Bug 300530] New: Backslash continuations of single-line comments not supported Message-Id: X-MARC-Message: https://marc.info/?l=kdevelop-bugs&m=133781045814115 https://bugs.kde.org/show_bug.cgi?id=300530 Bug ID: 300530 Severity: normal Version: git master Priority: NOR Assignee: kdevelop-bugs@kdevelop.org Summary: Backslash continuations of single-line comments not supported Classification: Unclassified OS: Linux Reporter: nicolas.alvarez@gmail.com Hardware: Compiled Sources Status: NEW Component: Language Support: CPP Product: kdevelop When a single-line comment (ie. //stuff ) has a backslash at the end of the line, it should be parsed as a line continuation, thus making the following line a comment too. KDevelop doesn't support this. Example: // this is a comment. \ int a; int b; In this code, the variable 'a' doesn't exist, since its declaration is actually in a comment. The Katepart syntax highlighter for C++ handles this correctly: the "int a;" line is colored in gray like the previous line. However, KDevelop doesn't understand the backslash, and highlights 'a' in bold green as a variable declaration. -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ KDevelop-bugs mailing list KDevelop-bugs@kdevelop.org https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs