Skip to content

Commit aee0eb7

Browse files
authored
Merge pull request #36 from linw1995/fix/right_way_to_generate_standalone_parser
fix: right way to generate standalone parser
2 parents 7d3be2c + 1dccec1 commit aee0eb7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

jsonpath/parser.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@
2222

2323
except NameError:
2424
# Local Folder
25-
from .lark import DATA, Lark_StandAlone
25+
from .lark import Lark_StandAlone
2626

27-
DATA["options"]["maybe_placeholders"] = True
2827
parser = Lark_StandAlone()
2928

3029

jsonpath_build.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ def build_lark_parser(pybin_path=None) -> None:
1212
pybin_path or sys.executable,
1313
"-m",
1414
"lark.tools.standalone",
15+
"--maybe_placeholders",
1516
"jsonpath/grammar.lark",
1617
]
1718
)

0 commit comments

Comments
 (0)