Skip to content

Commit

Permalink
fixup! Add julia parser
Browse files Browse the repository at this point in the history
An initialized field (cur_token) of lexer is accessed in following control flow:

initLexer()
=> advanceToken():

            if (isOperator(lexer->cur_token))
            {
                return lexer->cur_token;
            }
            return lexer->cur_token = TOKEN_NEWLINE;
  • Loading branch information
masatake committed Oct 12, 2020
1 parent 0474092 commit 94a2812
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions parsers/julia.c
Original file line number Diff line number Diff line change
Expand Up @@ -844,6 +844,7 @@ static void initLexer (lexerState *lexer)
advanceNChar(lexer, 2);
lexer->token_str = vStringNew();
lexer->first_token = true;
lexer->cur_token = TOKEN_NONE;

if (lexer->cur_c == '#' && lexer->next_c == '!')
{
Expand Down

0 comments on commit 94a2812

Please sign in to comment.