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