We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b9e759 commit 61bd2ebCopy full SHA for 61bd2eb
main.go
@@ -81,7 +81,7 @@ func LoadSeclang(input string) types.ConfigurationList {
81
if err != nil {
82
return err
83
}
84
- if !info.IsDir() && filepath.Ext(info.Name()) == ".conf" {
+ if ext := filepath.Ext(info.Name()); !info.IsDir() && (ext == ".conf" || (ext == ".example" && filepath.Ext(strings.TrimSuffix(info.Name(), ext)) == ".conf")) {
85
input, err := antlr.NewFileStream(path)
86
87
panic("Error reading file" + path)
0 commit comments