-
Notifications
You must be signed in to change notification settings - Fork 221
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
This string breaks the native parser: rf"\"{feature_name.lower()}\""
$ echo 'rf"\"{feature_name.lower()}\""' | LIBCST_PARSER_TYPE=native python -m libcst.tool print - > /dev/null
Traceback (most recent call last):
File "<string>", line 49, in <module>
File "<string>", line 47, in __run
File "lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "libcst/__main__.py", line 25, in <module>
sys.exit(fbcode_main())
File "libcst/__main__.py", line 19, in fbcode_main
return libcst.tool.main(
File "libcst/tool.py", line 834, in main
return lookup.get(args.action or None, _invalid_command)(proc_name, command_args)
File "libcst/tool.py", line 278, in _print_tree_impl
tree = parse_module(
File "libcst/_parser/entrypoints.py", line 109, in parse_module
result = _parse(
File "libcst/_parser/entrypoints.py", line 55, in _parse
return parse(source_str)
libcst._exceptions.ParserSyntaxError: Syntax Error @ 0:1.
tokenizer error: unexpected characters after a line continuation
rf"\"{feature_name.lower()}\""
^
$
$ echo 'rf"\"{feature_name.lower()}\""' | python -m libcst.tool print - > /dev/null
$
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working