-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Auto brace complete" cause tokenizer error with strings as comments #35994
Comments
When my Auto-brace complete is ON, and I typed " on new line I immediately got completing " character - so it's a valid String. Can you record a GIF showing that issue, it's hard to reproduce with above description. |
@dreamsComeTrue maybe my instructions were not clear enough. You are supposed to type Here's a gif showing that |
OK, I was able to reproduce it, but only in one test case:
BUT, when I moved in, into - for example 'func' block, so I am indented (like with 4 spaces), and I repeat the same process - there is no tokenizer error at all. So I've basically confirmed your GIF. var a = """
[[]]
""" then error is not showing (for each of the bracket type). |
@dreamsComeTrue many people use multiline strings as comments, as it is also customary in python. |
it's because of the cursor splits the string into string, cursor, and some maybe invalid token there is another way to cause this error func f():
$"/root|." ## now type something between the 't' and the '.' |
I can reproduce the issue on On |
Godot version:
3.2
OS/device including version:
Description: Manjaro Linux
Release: 18.1.5
Codename: Juhraya
Kernel: Linux 5.4.15-2-MANJARO
Architecture: x86-64
Issue description:
When auto brace complete is turned on an one tries to use multiline strings (or standard strings) as comments the console will output the folowing error when opening a parenthesis or any bracket.
It doesn't seem to break the editor in any way, however.
Steps to reproduce:
"(
or"""(
Expected:
Actual:
The text was updated successfully, but these errors were encountered: