package openssh import ( "config-lsp/common" "regexp" ) func createOpenSSHConfigParser() common.SimpleConfigParser { return common.SimpleConfigParser{ Lines: make(map[string]common.SimpleConfigLine), Options: common.SimpleConfigOptions{ Separator: *regexp.MustCompile(`(?m)^\s*(?P\w+)(?P\s*)(?P.*)\s*$`), IgnorePattern: *regexp.MustCompile(`^(?:#|\s*$)`), IdealSeparator: " ", AvailableOptions: &Options, }, } } var Parser = createOpenSSHConfigParser()