diff options
author | Neil Hodgson <nyamatongwe@gmail.com> | 2017-09-01 08:53:14 +1000 |
---|---|---|
committer | Neil Hodgson <nyamatongwe@gmail.com> | 2017-09-01 08:53:14 +1000 |
commit | 566b81a2fda39f83e4fbc860388385c2d3087d33 (patch) | |
tree | 9cbf68d8f62a3a6262a6d71bac4616614a82cc75 /lexers/LexVisualProlog.cxx | |
parent | 66dcd50fcdc62cadecdac2860e82f9aaaa7a9976 (diff) | |
download | scintilla-mirror-566b81a2fda39f83e4fbc860388385c2d3087d33.tar.gz |
Backport: Use "Falls through" comments to avoid warnings from GCC 7.1.
Backport of changeset 6387:4ad398cbd71f.
Diffstat (limited to 'lexers/LexVisualProlog.cxx')
-rw-r--r-- | lexers/LexVisualProlog.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lexers/LexVisualProlog.cxx b/lexers/LexVisualProlog.cxx index c03069075..6ba7bcbbc 100644 --- a/lexers/LexVisualProlog.cxx +++ b/lexers/LexVisualProlog.cxx @@ -366,6 +366,7 @@ void SCI_METHOD LexerVisualProlog::Lex(Sci_PositionU startPos, Sci_Position leng case SCE_VISUALPROLOG_STRING_ESCAPE_ERROR: // return to SCE_VISUALPROLOG_STRING and treat as such (fall-through) sc.SetState(SCE_VISUALPROLOG_STRING); + // Falls through. case SCE_VISUALPROLOG_STRING: if (sc.atLineEnd) { sc.SetState(SCE_VISUALPROLOG_STRING_EOL_OPEN); @@ -385,6 +386,7 @@ void SCI_METHOD LexerVisualProlog::Lex(Sci_PositionU startPos, Sci_Position leng case SCE_VISUALPROLOG_STRING_VERBATIM_EOL: // return to SCE_VISUALPROLOG_STRING_VERBATIM and treat as such (fall-through) sc.SetState(SCE_VISUALPROLOG_STRING_VERBATIM); + // Falls through. case SCE_VISUALPROLOG_STRING_VERBATIM: if (sc.atLineEnd) { sc.SetState(SCE_VISUALPROLOG_STRING_VERBATIM_EOL); |