fix call-exprs with spacing
This commit is contained in:
parent
1a197b26ab
commit
90a1d25747
3 changed files with 1877 additions and 1758 deletions
|
@ -56,7 +56,7 @@ module.exports = grammar({
|
|||
number: $ => token(prec(10, /\d+(\.\d+)?/)),
|
||||
ministring: $ => token(prec(10, seq('^', /[^ \n\r\t<>:;&{}"'\[\],]+/))),
|
||||
string: $ => seq('"', repeat(choice(/\\./, /./)), '"'),
|
||||
call_expr: $ => seq('<', optional($._spacing), repeat($._statement), $._unspaced_statement, '>'),
|
||||
call_expr: $ => seq('<', optional($._spacing), repeat($._statement), $._unspaced_statement, optional($._spacing), '>'),
|
||||
with_expr: $ => seq(
|
||||
'with', $._spacing,
|
||||
repeat(seq($.identifier, $._spacing)),
|
||||
|
|
|
@ -421,6 +421,18 @@
|
|||
"type": "SYMBOL",
|
||||
"name": "_unspaced_statement"
|
||||
},
|
||||
{
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "_spacing"
|
||||
},
|
||||
{
|
||||
"type": "BLANK"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": ">"
|
||||
|
|
3621
src/parser.c
3621
src/parser.c
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue