From 955451ec4156d87c98e74f52c801faa4f65fb694 Mon Sep 17 00:00:00 2001 From: Romain Menke Date: Fri, 31 Jan 2025 20:25:53 +0100 Subject: [PATCH] Fix end position of rules with `ownSemicon` --- lib/parser.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/parser.js b/lib/parser.js index 8a0441174..001d7a9a2 100644 --- a/lib/parser.js +++ b/lib/parser.js @@ -347,6 +347,8 @@ class Parser { if (prev && prev.type === 'rule' && !prev.raws.ownSemicolon) { prev.raws.ownSemicolon = this.spaces this.spaces = '' + prev.source.end = this.getPosition(token[2]) + prev.source.end.offset += prev.raws.ownSemicolon.length } } }