klyn.code.LexicalState.inString
method
public inString() as Boolean
Description

Returns true when inside a multi-line string literal (outside interpolated code).

Returns

true when mode == LexicalMode.MULTILINE_STRING and interpolationDepth == 0.

Example
import klyn.code

s = LexicalState(LexicalMode.MULTILINE_STRING, "\"\"\"")
assert s.inString()