Open stormfish-sci opened 5 years ago
From the issue I can tell no good grammar tree is build for braces analysis, it's no good to rely on the project.
+1
Old issue but I wrote this and maybe it will work better for you, if you still want it Bython
++
(i.e +1) It happens when using f-strings which makes using them impossible, also it raises an error when inside functions
def example_fn(param) {
print(f"text from function, {param}")
}
Raises this error:
File "/home/mzh/python_file.py", line 4
print(f"text from function,:param")
^
IndentationError: expected an indented block after function definition on line 3
Bython v0.8 exhibits a problem in which it modifies braces within single and double quotation strings.
Code to reproduce:
test.by:
print('Hello, world! I have braces {} here.');
print("Hello, world! I have braces {} here, too.");
The output produced is:
Hello, world! I have braces:here.
Hello, world! I have braces:here, too.
The expected output is, of course:
Hello, world! I have braces {} here.
Hello, world! I have braces {} here, too.
Thanks!