Skip to content

Commit

Permalink
{fix} consume all node-space, not just literal whitespace, after slas…
Browse files Browse the repository at this point in the history
…hdash
  • Loading branch information
bgotink committed Dec 21, 2024
1 parent d7eddec commit 3b780a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('') +
Expand Down

0 comments on commit 3b780a1

Please sign in to comment.