use line_continuation instead of token literal
This commit is contained in:
parent
d812f3a7fc
commit
739747c15a
|
@ -1,7 +1,7 @@
|
||||||
module.exports = grammar({
|
module.exports = grammar({
|
||||||
name: "dockerfile",
|
name: "dockerfile",
|
||||||
|
|
||||||
extras: ($) => [/\s+/, "\\\n"],
|
extras: ($) => [/\s+/, $.line_continuation],
|
||||||
|
|
||||||
rules: {
|
rules: {
|
||||||
source_file: ($) => repeat(seq(choice($._instruction, $.comment), "\n")),
|
source_file: ($) => repeat(seq(choice($._instruction, $.comment), "\n")),
|
||||||
|
|
|
@ -1502,8 +1502,8 @@
|
||||||
"value": "\\s+"
|
"value": "\\s+"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "STRING",
|
"type": "SYMBOL",
|
||||||
"value": "\\\n"
|
"name": "line_continuation"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"conflicts": [],
|
"conflicts": [],
|
||||||
|
|
Loading…
Reference in a new issue