Skip to content

Commit 097d58e

Browse files
mjrenomjreno
authored andcommitted
lark word regex consistency
1 parent d6d6da7 commit 097d58e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

flopy4/mf6/codec/reader/grammar/basic.lark

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ block_name: CNAME [INT]
44
_list: line*
55
line: [WS] item+ _NL+
66
item: word | NUMBER
7-
word: /[a-zA-Z0-9._+'~,-\\(\\)]+/
7+
word: /[a-zA-Z0-9._'~,+-\\(\\)]+/
88

99
%import common.NEWLINE -> _NL
1010
%import common.WS

flopy4/mf6/codec/reader/grammar/typed.lark

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ filename: ESCAPED_STRING | word
1919
data: double+
2020
record: token+ NEWLINE
2121
token: number | word
22-
word: /(?!(?i:begin|end))[a-zA-Z0-9._'~,-\\(\\)]+/
22+
word: /(?!(?i:begin|end))[a-zA-Z0-9._'~,+-\\(\\)]+/
2323
_token: word | number
2424

2525
%import common.NEWLINE

0 commit comments

Comments
 (0)