Skip to content

Commit

Permalink
More reserved works used in annotation keys
Browse files Browse the repository at this point in the history
  • Loading branch information
esjewett committed Jan 2, 2020
1 parent e89b817 commit bff08c9
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions ABAPCDS.g4
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,6 @@ IDENTIFIER
: [a-zA-Z_0-9/]+
;

ANNOTATIONKEY
: '@' IDENTIFIER ( '.' IDENTIFIER )*
;

ENUM
: '#' IDENTIFIER
;
Expand Down Expand Up @@ -271,10 +267,13 @@ annotation_value
annotation_identifier
: IDENTIFIER
| ASSOCIATION
| TO
| FILTER
| FROM
;

subannos
: IDENTIFIER ('.' annotation_identifier)* (ANNOTATIONSEPERATOR annotation_right_side)?
: annotation_identifier ('.' annotation_identifier)* (ANNOTATIONSEPERATOR annotation_right_side)?
;

arrelem
Expand All @@ -288,9 +287,13 @@ annotation_right_side
| '[' (arrelem ',' )* arrelem ']'
;

annotation_key
: '@' annotation_identifier ('.' annotation_identifier)*
;

annotation
: ANNOTATIONKEY ANNOTATIONSEPERATOR WS* annotation_right_side
| ANNOTATIONKEY // For boolean annotations it is technically allowed to specify only the key
: annotation_key (ANNOTATIONSEPERATOR WS* annotation_right_side)?
// For boolean annotations it is technically allowed to specify only the key
;

parameter
Expand Down

0 comments on commit bff08c9

Please sign in to comment.