Skip to content

Commit

Permalink
Improved parsing errors.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@1109 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
x02danhe committed Apr 5, 2004
1 parent 767dfe6 commit c5c68ff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modelica_parser/src/modelica_lexer.g
Expand Up @@ -134,8 +134,9 @@ SL_COMMENT :
{ $setType(antlr::Token::SKIP); }
;

IDENT options { testLiterals = true;} :
NONDIGIT (NONDIGIT | DIGIT)*;
IDENT options { testLiterals = true; paraphrase = "an identifier";} :
NONDIGIT (NONDIGIT | DIGIT)*
;

protected
NONDIGIT : ('_' | 'a'..'z' | 'A'..'Z');
Expand Down

0 comments on commit c5c68ff

Please sign in to comment.