FlowscopeDocs

P001

unrecognized token

Severity Error

The lexer met a character that does not start any Flowscope Script token. The most common source is text pasted from a web page or a chat window: typographic minus signs (−), curly quotes (“ ”), non-breaking spaces or other look-alike Unicode characters.

Replace the character with its plain ASCII counterpart. Operators are + - * /, strings use straight double quotes, and identifiers consist of letters, digits and _.

Failing example

Flowscope Script
script "Bar range"
data chart = subscribe(data.ohlcv)
plot range = plot.histogram(title: "High minus low")
on chart.close {
  range.plot(chart.high − chart.low)
}

Fixed example

Flowscope Script
script "Bar range"
data chart = subscribe(data.ohlcv)
plot range = plot.histogram(title: "High minus low")
on chart.close {
  range.plot(chart.high - chart.low)
}