From e81b890e3103106e3062a3da7d14d0d5bda697c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arne=20Skj=C3=A6rholt?= Date: Tue, 4 Nov 2014 09:13:38 +0100 Subject: [PATCH] Explicit line joining with backslash-newline. --- src/Snake/Grammar.nqp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Snake/Grammar.nqp b/src/Snake/Grammar.nqp index f56ebfe..1eaa3dd 100644 --- a/src/Snake/Grammar.nqp +++ b/src/Snake/Grammar.nqp @@ -23,7 +23,7 @@ token NEWLINE { <.ws> [\n | $] } ### 2.1.9: Whitespace between tokens token wsc { <[\ \t\f]> } # TODO: Line joining with backslash -token ws { <.wsc>* ['#' \N+]? || <.wsc>+ ['#' \N+]? } +token ws { [ <.wsc>* || <.wsc>+] ['#' \N+ | \\\n <.ws>]? } ## 2.3: Identifiers and keywords # TODO: xid_start/xid_continue, which is defined as anything that is