carloea2 commented on code in PR #5141:
URL: https://github.com/apache/texera/pull/5141#discussion_r3353521245
##########
common/pybuilder/src/main/scala/org/apache/texera/amber/pybuilder/PythonLexerUtils.scala:
##########
@@ -37,6 +37,64 @@ object PythonLexerUtils {
if (lastNewlineIndex >= 0) s.substring(lastNewlineIndex + 1) else s
}
+ /**
+ * Update triple-quoted-string state after scanning one physical Python
source line.
+ *
+ * This is intentionally lightweight. It only tracks whether scanning is
inside a `'''` or `"""` string so callers
+ * that reason about indentation can avoid treating string contents as real
Python statements.
+ */
+ def updateTripleQuotedStringState(
Review Comment:
Done. Thanks.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]