Skip to content
This repository has been archived by the owner on May 18, 2019. It is now read-only.

Commit

Permalink
Do not allow paths like A..B.C (typo in grammar)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund authored and OpenModelica-Hudson committed Dec 16, 2016
1 parent d234d60 commit 7311f9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Parser/Modelica.g
Original file line number Diff line number Diff line change
Expand Up @@ -1379,7 +1379,7 @@ name_path returns [void* ast]
name_path2 returns [void* ast]
@init{ id = 0; p = 0; } :
{ LA(2) != DOT }? (id=IDENT|id=CODE) { ast = Absyn__IDENT(token_to_scon(id)); }
| (id=IDENT | id=CODE) DOT p=name_path { ast = Absyn__QUALIFIED(token_to_scon(id),p); }
| (id=IDENT | id=CODE) DOT p=name_path2 { ast = Absyn__QUALIFIED(token_to_scon(id),p); }
;
name_path_star returns [void* ast, int unqual, void* lst]
Expand Down

0 comments on commit 7311f9c

Please sign in to comment.