Skip to content

Commit

Permalink
Fix for parser eating too much input in name rule
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund committed Mar 25, 2021
1 parent ebe757c commit 0755bfc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion OMCompiler/Compiler/Parsers/SimpleModelicaParser.mo
Original file line number Diff line number Diff line change
Expand Up @@ -1472,10 +1472,11 @@ algorithm
(tokens, tree) := scanOpt(tokens, tree, TokenId.DOT);
(tokens, tree) := scan(tokens, tree, TokenId.IDENT);
while true loop
(tokens, tree, b) := scanOpt(tokens, tree, TokenId.DOT);
(tokens, tree, b) := LAk(tokens, tree, {{TokenId.DOT}, {TokenId.IDENT}});
if not b then
break;
end if;
(tokens, tree) := scan(tokens, tree, TokenId.DOT);
(tokens, tree) := scan(tokens, tree, TokenId.IDENT);
end while;
outTree := makeNodePrependTree(listReverse(tree), inTree);
Expand Down

0 comments on commit 0755bfc

Please sign in to comment.