File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ FEATURES_KEY: 'features';
88IMPORTS_KEY : ' imports' ;
99NAMESPACE_KEY : ' namespace' ;
1010AS_KEY : ' as' ;
11- CONSTRAINT_KEY : ' constraint' ;
1211CONSTRAINTS_KEY : ' constraints' ;
1312CARDINALITY_KEY : ' cardinality' ;
1413STRING_KEY : ' String' ;
@@ -61,17 +60,17 @@ CLOSE_BRACE: '}';
6160OPEN_COMMENT : ' /*' ;
6261CLOSE_COMMENT : ' */' ;
6362
64- FLOAT : ' -' ?[0-9]*[.][0-9]+;
65- INTEGER : ' 0' | ' -' ?[1-9][0-9]*;
63+ FLOAT : ' -' ? [0-9]* [.][0-9]+;
64+ INTEGER : ' 0' | ' -' ? [1-9][0-9]*;
6665BOOLEAN : ' true' | ' false' ;
6766
6867COMMA : ' ,' ;
6968DOT : ' .' ;
7069
71- ID_NOT_STRICT : ' "' ~[\r\n" .]+'" ' ;
70+ ID_NOT_STRICT : ' "' ~[\r\n" .]+ '" ' ;
7271ID_STRICT: [a-zA-Z]([a-zA-Z0-9_#§%?\\ ' äüöß;])*;
7372
74- STRING : ' \' ' ~[\r\n' .]+ ' \' ' ;
73+ STRING : ' \' ' ~[\r\n' ]+ ' \' ' ;
7574
7675SKIP_ : ( SPACES | COMMENT ) -> skip;
7776
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- CONSTRAINT_KEY constraint # SingleConstraintAttribute
47+ CONSTRAINTS_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