From 739747c15ae5ad1af7bdd40b991f68e61fa592bc Mon Sep 17 00:00:00 2001 From: Camden Cheek Date: Sun, 20 Jun 2021 11:55:27 -0600 Subject: [PATCH] use line_continuation instead of token literal --- grammar.js | 2 +- src/grammar.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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": [],