aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2013-10-17 09:45:03 +1100
committerNeil <nyamatongwe@gmail.com>2013-10-17 09:45:03 +1100
commit3f2dfe28853e459227da8397faa2ddbda331dc32 (patch)
treeb1a6550d50ab2f6b6df8ab1e70befd5c16022f27
parent6dea080be8df3c336e0414e410e67b0f4e45e44f (diff)
downloadscintilla-mirror-3f2dfe28853e459227da8397faa2ddbda331dc32.tar.gz
Bug [#1538]. PP-line comments lost from EOL string.
From Alpha.
-rw-r--r--doc/ScintillaHistory.html12
-rw-r--r--lexers/LexCPP.cxx2
2 files changed, 13 insertions, 1 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html
index b54522bc7..98debdbb5 100644
--- a/doc/ScintillaHistory.html
+++ b/doc/ScintillaHistory.html
@@ -444,6 +444,18 @@
</li>
</ul>
<h3>
+ <a href="http://prdownloads.sourceforge.net/scintilla/scite337.zip?download">Release 3.3.7</a>
+ </h3>
+ <ul>
+ <li>
+ Released 15 October 2013.
+ </li>
+ <li>
+ C++ lexer fixes bug with #include statements without " or &gt; terminating filename.
+ <a href="http://sourceforge.net/p/scintilla/bugs/1538/">Bug #1538</a>.
+ </li>
+ <ul>
+ <h3>
<a href="http://prdownloads.sourceforge.net/scintilla/scite336.zip?download">Release 3.3.6</a>
</h3>
<ul>
diff --git a/lexers/LexCPP.cxx b/lexers/LexCPP.cxx
index 6f7afc23d..edf415ca4 100644
--- a/lexers/LexCPP.cxx
+++ b/lexers/LexCPP.cxx
@@ -685,7 +685,7 @@ void SCI_METHOD LexerCPP::Lex(unsigned int startPos, int length, int initStyle,
if (IsASpace(sc.ch)) {
sc.SetState(SCE_C_DEFAULT|activitySet);
}
- } else if (isStringInPreprocessor && (sc.Match('>') || sc.Match('\"'))) {
+ } else if (isStringInPreprocessor && (sc.Match('>') || sc.Match('\"') || sc.atLineEnd)) {
isStringInPreprocessor = false;
} else if (!isStringInPreprocessor) {
if ((isIncludePreprocessor && sc.Match('<')) || sc.Match('\"')) {