diff --git a/grammar.js b/grammar.js index c8cdc5c..9a000b9 100644 --- a/grammar.js +++ b/grammar.js @@ -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")), diff --git a/src/grammar.json b/src/grammar.json index 2401ec1..6de8208 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -1502,8 +1502,8 @@ "value": "\\s+" }, { - "type": "STRING", - "value": "\\\n" + "type": "SYMBOL", + "name": "line_continuation" } ], "conflicts": [],