1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-26 14:10:06 +08:00
SpaceVim/bundle/nvim-treesitter/tests/query/highlights/fusion/expressions.fusion
2022-04-14 12:01:23 +08:00

83 lines
2.0 KiB
Plaintext
Vendored

string = ${'foo'}
// ^string
string = ${'foo \'bar\' baz'}
// ^string
string = ${"foo"}
// ^string
string = ${"foo ${test}"}
// ^string
boolean = ${true}
// ^boolean
number = ${1}
// ^number
number = ${1.2}
// ^number
propertyPath = ${property.path}
// ^variable
// ^variable
thisorProps = ${this.path}
// ^variable.builtin
// ^variable
thisorProps = ${props.path}
// ^variable.builtin
// ^variable
array = ${[]}
// ^punctuation.bracket
array = ${[true, 'string', 1, [true]]}
// ^punctuation.bracket
// ^boolean
// ^string
// ^number
// ^punctuation.bracket
// ^boolean
object = ${{}}
// ^punctuation.bracket
object = ${{first: 'value', second: true, third: [], fourth: object.path }}
// ^property
// ^string
// ^property
// ^boolean
// ^property
// ^punctuation.bracket
// ^property
// ^variable
result = ${methodCall()}
// ^function
result = ${Some.methodCall(param, param)}
// ^function
// ^variable
// ^variable
arrowFunction = ${map(foo, (bar, buz) => bar * buz)}
// ^function
// ^variable
// ^variable
logic = ${!foo && !(bar || baz) and not 'string'}
// ^operator
// ^operator
// ^operator
// ^operator
// ^operator
ternary = ${ check ? true : false}
// ^punctuation.delimiter
// ^punctuation.delimiter