mirror of
https://github.com/danbulant/lang-surrealql
synced 2026-05-19 04:18:34 +00:00
fix code highlight
This commit is contained in:
parent
b7aece5302
commit
2d08b95777
2 changed files with 4 additions and 3 deletions
|
|
@ -101,7 +101,7 @@ Column {
|
|||
}
|
||||
Field {
|
||||
expression ("as" identifier)? |
|
||||
"*"
|
||||
Star
|
||||
}
|
||||
BinaryExpression {
|
||||
expression !and And expression |
|
||||
|
|
@ -112,7 +112,7 @@ BinaryExpression {
|
|||
expression !exp Raise expression |
|
||||
expression !times (DivideOrMultiply) expression |
|
||||
expression !plus (AddOrSubtract) expression |
|
||||
expression !dot (("." "*")+ | ("." "*")* "." expression) |
|
||||
expression !dot (("." Star)+ | ("." Star)* "." expression) |
|
||||
expression? !dot "->" expression |
|
||||
expression !array ("[" expression "]")
|
||||
}
|
||||
|
|
@ -296,6 +296,7 @@ statement[@isGroup=Statement] {
|
|||
Subtract { "-" }
|
||||
AddOrSubtract { Add | Subtract }
|
||||
Raise { "**" }
|
||||
Star { "*" }
|
||||
|
||||
Escape {
|
||||
"\\" ("x" hex hex | "u" ("{" hex+ "}" | hex hex hex hex) | ![xu])
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ export let parser = baseParser.configure({
|
|||
Namespace: t.namespace,
|
||||
FunctionName: t.function(t.variableName),
|
||||
Variable: t.variableName,
|
||||
"*": t.atom,
|
||||
Star: t.atom,
|
||||
Integer: t.integer,
|
||||
"Decimal Float": t.float,
|
||||
Duration: t.number,
|
||||
|
|
|
|||
Loading…
Reference in a new issue