This website works better with JavaScript.
Home
Explore
Help
Sign In
jmg
/
gitmirror
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
39
Wiki
Activity
Browse Source
Merge branch 'issue441'
tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.7.4
Erez Sh
5 years ago
parent
b6b95c3ff0
11cd11394f
commit
f86a1c6195
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
lark/utils.py
+ 1
- 1
lark/utils.py
View File
@@ -172,7 +172,7 @@ import sre_parse
import sre_constants
def get_regexp_width(regexp):
try:
return sre_parse.parse(regexp).getwidth()
return
[int(x) for x in
sre_parse.parse(regexp).getwidth()
]
except sre_constants.error:
raise ValueError(regexp)
Write
Preview
Loading…
Cancel
Save