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({ 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")),

View file

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