summaryrefslogtreecommitdiffstats
path: root/parsing/parser.mly
diff options
context:
space:
mode:
Diffstat (limited to 'parsing/parser.mly')
-rw-r--r--parsing/parser.mly6
1 files changed, 5 insertions, 1 deletions
diff --git a/parsing/parser.mly b/parsing/parser.mly
index 11d636096..b39973542 100644
--- a/parsing/parser.mly
+++ b/parsing/parser.mly
@@ -1900,7 +1900,7 @@ additive:
/* Attributes and extensions */
-attr_id:
+single_attr_id:
LIDENT { $1 }
| UIDENT { $1 }
| AND { "and" }
@@ -1954,6 +1954,10 @@ attr_id:
/* mod/land/lor/lxor/lsl/lsr/asr are not supported for now */
;
+attr_id:
+ single_attr_id { $1 }
+ | single_attr_id DOT attr_id { $1 ^ "." ^ $3 }
+;
attribute:
LBRACKETAT attr_id opt_expr RBRACKET { ($2, $3) }
;