You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 15, 2026. It is now read-only.
At least in this simple case, the Python grammar doesn't seem to support string literal concatenation, where adjacent string literals are valid and are concatenated at compile time to form a single string. The parser appears to be marking an error on the second string.
Python 3.9.0 (default, Dec 2 2020, 10:34:08)
[Clang 12.0.0 (clang-1200.0.32.27)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> print('00300:'
... '03630:'
... '36963:'
... '03630:'
... '00300')
00300:03630:36963:03630:00300
At least in this simple case, the Python grammar doesn't seem to support string literal concatenation, where adjacent string literals are valid and are concatenated at compile time to form a single string. The parser appears to be marking an error on the second string.
Parse tree:
Script(ExpressionStatement(CallExpression(VariableName,ArgList("(",String,⚠))),ExpressionStatement(String),ExpressionStatement(String),ExpressionStatement(String),ExpressionStatement(String,⚠(")")))
A Python session showing the behaviour: