v0.13.7
errors and warnings / parsing

errors and warnings / parsing / E0102

E0102 error

Unterminated string or long bracket

area
parsing (x01xx)
fails the build
yes

A string runs to the end of its line, or a long string or long comment ([[ … ]], --[==[ … ]==]) or a backtick string runs to the end of the file, without its closing delimiter. Quoted strings ("…", '…') cannot span lines, as in Lua 5.1: close the string on the same line, or use a long string or a backtick string for text with line breaks.

Example

× failswowlua
local greeting = "Welcome backprint(greeting)
✓ compileswowlua
local greeting = "Welcome back"print(greeting)

The compiler reports it like this:

error[E0102]: unfinished string
  ┌─ src/main.wowlua:1:18
  │
1 │ local greeting = "Welcome back
  │                  ^^^^^^^^^^^^^ here
codemessage
E0101Unexpected token
E0116Unbalanced } in an interpolated string

Offline

terminal
$ wowlua explain E0102
E0102 (error): Unterminated string or long bracket

source on GitHub ↗