tree-sitter-bp/test/highlight/litterals.bp
Bruno BELANYI 7d6dce936a Account for '-' as an operator
For syntax purposes it's part of the number, but it looks better when
highlighted as an operator.
2024-04-09 12:28:28 +01:00

20 lines
255 B
Plaintext

foo = 0
// ^ number
foo = -42
// ^ number
foo = true
// ^ boolean
foo = "foo\nbar"
// ^ string
// ^ string.escape
// ^ string.escape
// ^ string
// ^ string
foo = `baz`
// ^ string
// ^ string