This PR fixes an internal bug with the ast-from-position for a case of unclosed at-rule at eof. Before this fix postcss would simply allow the unclosed at-rule without setting the source.end of the root node which caused the ast-from-position to ignore the unclosed at-rule.
This PR fixes:
close all unclosed nodes at the end of safe parsing
check for unclosed at-rule in ast-from-position
set minimum of one after the at-rule name as the params start value for the case where the space after the name is not entered yet: @name|
This PR fixes an internal bug with the
ast-from-position
for a case of unclosed at-rule at eof. Before this fix postcss would simply allow the unclosed at-rule without setting thesource.end
of the root node which caused theast-from-position
to ignore the unclosed at-rule.This PR fixes:
ast-from-position
@name|