Skip to content

Commit 33ed0e2

Browse files
committed
Add priv_id parser rule
1 parent 42eeee6 commit 33ed0e2

File tree

4 files changed

+663
-607
lines changed

4 files changed

+663
-607
lines changed

src/zorg/grammar/ZorgFile.g4

+2-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ simple_prop : id COLON COLON simple_prop_value ;
5959
simple_prop_value : id | url ;
6060
inline_prop : '[' id COLON COLON SPACE? id_group (SPACE id_group)* ']';
6161
id_group : id (any_sym+ | id)* ;
62-
id : ID | NUM_ID | PRIORITY | date | time | zid | url | https | LOWER_O | LOWER_X ;
62+
id : priv_id ;
63+
priv_id : ID | NUM_ID | PRIORITY | date | time | zid | url | https | LOWER_O | LOWER_X ;
6364
date : DATE ;
6465
time : TIME ;
6566

src/zorg/grammar/zorg_file/ZorgFile.interp

+2-1
Large diffs are not rendered by default.

src/zorg/grammar/zorg_file/ZorgFileListener.py

+9
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,15 @@ def exitId(self, ctx:ZorgFileParser.IdContext):
278278
pass
279279

280280

281+
# Enter a parse tree produced by ZorgFileParser#priv_id.
282+
def enterPriv_id(self, ctx:ZorgFileParser.Priv_idContext):
283+
pass
284+
285+
# Exit a parse tree produced by ZorgFileParser#priv_id.
286+
def exitPriv_id(self, ctx:ZorgFileParser.Priv_idContext):
287+
pass
288+
289+
281290
# Enter a parse tree produced by ZorgFileParser#date.
282291
def enterDate(self, ctx:ZorgFileParser.DateContext):
283292
pass

0 commit comments

Comments
 (0)