Skip to content

Commit

Permalink
#44 Fix problems with \n versus \r\n line ends for comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
mpheath authored and nyamatongwe committed Dec 13, 2021
1 parent b8b3e46 commit a27851f
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lexers/LexInno.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -151,18 +151,12 @@ static void ColouriseInnoDoc(Sci_PositionU startPos, Sci_Position length, int, W
// Start of a Pascal comment
state = SCE_INNO_COMMENT_PASCAL;
isCommentRound = true;
// Push forward to the asterisk
ch = chNext;
chNext = styler[++i];
styler.ColourTo(i, SCE_INNO_COMMENT_PASCAL);
styler.ColourTo(i + 1, SCE_INNO_COMMENT_PASCAL);
} else if (isCode && ch == '/' && chNext == '/') {
// Start of C-style comment
state = SCE_INNO_COMMENT_PASCAL;
isCommentSlash = true;
// Push forward to the next slash
ch = chNext;
chNext = styler[++i];
styler.ColourTo(i, SCE_INNO_COMMENT_PASCAL);
styler.ColourTo(i + 1, SCE_INNO_COMMENT_PASCAL);
} else if (!isMessages && ch == '"') {
// Start of a double-quote string
state = SCE_INNO_STRING_DOUBLE;
Expand Down

0 comments on commit a27851f

Please sign in to comment.