Skip to content

Commit 08eff9d

Browse files
committed
Change tag capture group
1 parent c943f47 commit 08eff9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gedcom7/grammar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
daterange = f'(BET{d}{date}{d}AND{d}{date}|AFT{d}{date}|BEF{d}{date})'
3434
daterestrict = '(FROM|TO|BET|AND|BEF|AFT|ABT|CAL|EST|BCE)'
3535
datevalue = f'({date}|{dateperiod}|{daterange}|{dateapprox})?'
36-
tag = f'(?P<tag>{stdtag}|{exttag})'
36+
tag = f'({stdtag}|{exttag})'
3737
enum = f'{tag}'
3838
eol = '(\\\r(\\\n)?|\\\n)'
3939
fraction = '[0-9]+'
@@ -47,7 +47,7 @@
4747
noneol = '[\t -\\U0010ffff]'
4848
linestr = f'(?P<linestr>({nonat}|{atsign}{atsign})({noneol})*)'
4949
lineval = f'({pointer}|{linestr})'
50-
line = f'{level}{d}((?P<xref>{xref}){d})?{tag}({d}{lineval})?{eol}'
50+
line = f'{level}{d}((?P<xref>{xref}){d})?(?P<tag>{tag})({d}{lineval})?{eol}'
5151
nocommasp = '[\t-\\x1d!-+\\--\\U0010ffff]'
5252
nocomma = '[\t-+\\--\\U0010ffff]'
5353
listitem = f'({nocommasp}|{nocommasp}({nocomma})*{nocommasp})?'

0 commit comments

Comments
 (0)