use line_continuation instead of token literal

This commit is contained in:
Camden Cheek 2021-06-20 11:55:27 -06:00
parent d812f3a7fc
commit 739747c15a
No known key found for this signature in database
GPG key ID: 595BFFE3A04E48B9
2 changed files with 3 additions and 3 deletions

View file

@ -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")),

View file

@ -1502,8 +1502,8 @@
"value": "\\s+"
},
{
"type": "STRING",
"value": "\\\n"
"type": "SYMBOL",
"name": "line_continuation"
}
],
"conflicts": [],