Skip to content

Commit

Permalink
#13 Correct bug with inline comments
Browse files Browse the repository at this point in the history
  • Loading branch information
getzze authored and nyamatongwe committed May 27, 2021
1 parent 0cea22f commit 8b5da18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lexers/LexJulia.cxx
Expand Up @@ -978,13 +978,14 @@ void SCI_METHOD LexerJulia::Lex(Sci_PositionU startPos, Sci_Position length, int
// check start of a new state
if (sc.state == SCE_JULIA_DEFAULT) {
if (sc.ch == '#') {
sc.SetState(SCE_JULIA_COMMENT);
// increment depth if we are a block comment
if(sc.chNext == '=') {
commentDepth ++;
sc.Forward();
}
curLine = styler.GetLine(sc.currentPos);
styler.SetLineState(curLine, commentDepth);
sc.SetState(SCE_JULIA_COMMENT);
} else if (sc.ch == '!') {
sc.SetState(SCE_JULIA_OPERATOR);
} else if (sc.ch == '\'') {
Expand Down

0 comments on commit 8b5da18

Please sign in to comment.