Strips comments (trailing or whole-line).
@visibleForTesting String strip(String line) => line.replaceAll(_comment, '').trim();