Skip to content

Commit

Permalink
fixup! Add julia parser
Browse files Browse the repository at this point in the history
Avoid entering an infinite loop.
  • Loading branch information
masatake committed Oct 12, 2020
1 parent 51fd1c5 commit 0474092
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Units/parser-julia.r/infinite_loop.d/expected.tags
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
X input.jl /^struct X$/;" s
3 changes: 3 additions & 0 deletions Units/parser-julia.r/infinite_loop.d/input.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
struct X
X
end
1 change: 1 addition & 0 deletions parsers/julia.c
Original file line number Diff line number Diff line change
Expand Up @@ -990,6 +990,7 @@ static void parseShortFunction (lexerState *lexer, vString *scope, int parent_ki

if (lexer->cur_c != '(')
{
advanceToken(lexer, true);
return;
}

Expand Down

0 comments on commit 0474092

Please sign in to comment.