mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Disable inactive code parsing after string literals, bug 281745.
This commit is contained in:
parent
b59697f128
commit
4136ea67df
1 changed files with 4 additions and 1 deletions
|
@ -579,7 +579,10 @@ public class CPreprocessor implements ILexerLog, IScanner, IAdaptable {
|
||||||
appendStringContent(buf, t2);
|
appendStringContent(buf, t2);
|
||||||
endOffset= t2.getEndOffset();
|
endOffset= t2.getEndOffset();
|
||||||
continue loop;
|
continue loop;
|
||||||
|
case IToken.tINACTIVE_CODE_START:
|
||||||
|
// no support for inactive code after a string literal
|
||||||
|
skipInactiveCode();
|
||||||
|
continue loop;
|
||||||
default:
|
default:
|
||||||
break loop;
|
break loop;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue