microsoft / DSCParser

Allows the conversion of DSC scripts into PSObject for analysis purposes
MIT License
29 stars 20 forks source link

Bug fix: ignore comments on separate lines #45

Closed mpiederiet closed 7 months ago

mpiederiet commented 7 months ago

DSCParser tries to match a comment line to the associated DSC Resource property. When the comment is on a separate line, it was erroneously connected to the first property above it. This code fixes that