Allow leading ranges in the inventory host entries.
Handle comment on inventory group line.
Merge pull request #4351 from 2m/leading-range-fix

Allow leading ranges in the inventory host entries.