File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ FEATURES_KEY: 'features';
88IMPORTS_KEY : ' imports' ;
99NAMESPACE_KEY : ' namespace' ;
1010AS_KEY : ' as' ;
11+ CONSTRAINT_KEY : ' constraint' ;
1112CONSTRAINTS_KEY : ' constraints' ;
1213CARDINALITY_KEY : ' cardinality' ;
1314STRING_KEY : ' String' ;
@@ -60,17 +61,17 @@ CLOSE_BRACE: '}';
6061OPEN_COMMENT : ' /*' ;
6162CLOSE_COMMENT : ' */' ;
6263
63- FLOAT : ' -' ? [0-9]* [.][0-9]+;
64- INTEGER : ' 0' | ' -' ? [1-9][0-9]*;
64+ FLOAT : ' -' ?[0-9]*[.][0-9]+;
65+ INTEGER : ' 0' | ' -' ?[1-9][0-9]*;
6566BOOLEAN : ' true' | ' false' ;
6667
6768COMMA : ' ,' ;
6869DOT : ' .' ;
6970
70- ID_NOT_STRICT : ' "' ~[\r\n" .]+ '" ' ;
71+ ID_NOT_STRICT : ' "' ~[\r\n" .]+'" ' ;
7172ID_STRICT: [a-zA-Z]([a-zA-Z0-9_#§%?\\ ' äüöß;])*;
7273
73- STRING : ' \' ' ~[\r\n' ]+ ' \' ' ;
74+ STRING : ' \' ' ~[\r\n' .]+ ' \' ' ;
7475
7576SKIP_ : ( SPACES | COMMENT ) -> skip;
7677
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ value: BOOLEAN | FLOAT | INTEGER | STRING | attributes | vector;
4444vector : OPEN_BRACK (value (COMMA value)*)? CLOSE_BRACK ;
4545
4646constraintAttribute :
47- CONSTRAINTS_KEY constraint # SingleConstraintAttribute
47+ CONSTRAINT_KEY constraint # SingleConstraintAttribute
4848 | CONSTRAINTS_KEY constraintList # ListConstraintAttribute;
4949constraintList :
5050 OPEN_BRACK (constraint (COMMA constraint)*)? CLOSE_BRACK ;
You can’t perform that action at this time.
0 commit comments