Skip to content

Commit

Permalink
added inline comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cx-henriqueAlvelos committed Aug 10, 2023
1 parent 606d5f7 commit e072efa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/parser/ansible/ini/config/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ func (p *Parser) Parse(filePath string, fileContent []byte) ([]model.Document, [

reader := strings.NewReader(string(fileContent))
configparser.Delimiters("=")
config, err := configparser.ParseReader(reader)
inline := configparser.InlineCommentPrefixes([]string{";"})

config, err := configparser.ParseReaderWithOptions(reader, inline)
if err != nil {
return nil, nil, err
}
Expand Down

0 comments on commit e072efa

Please sign in to comment.