For syntax purposes it's part of the number, but it looks better when highlighted as an operator.
19 lines
255 B
Text
19 lines
255 B
Text
foo = 0
|
|
// ^ number
|
|
|
|
foo = -42
|
|
// ^ number
|
|
|
|
foo = true
|
|
// ^ boolean
|
|
|
|
foo = "foo\nbar"
|
|
// ^ string
|
|
// ^ string.escape
|
|
// ^ string.escape
|
|
// ^ string
|
|
// ^ string
|
|
|
|
foo = `baz`
|
|
// ^ string
|
|
// ^ string
|