From 3b780a1a10aeee2d47d7924081d12875809ea994 Mon Sep 17 00:00:00 2001 From: Bram Gotink Date: Sat, 21 Dec 2024 16:46:33 +0100 Subject: [PATCH] {fix} consume all node-space, not just literal whitespace, after slashdash --- src/parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser.js b/src/parser.js index 0409d92..a41c26f 100644 --- a/src/parser.js +++ b/src/parser.js @@ -847,7 +847,7 @@ export class KdlParser extends EmbeddedActionsParser { ALT: () => { const content = [$.CONSUME(slashDash).image]; - $.MANY1(() => content.push($.SUBRULE(rWhitespace))); + $.MANY1(() => content.push($.SUBRULE(rNodeSpace))); return new Comment( content.join('') +