(name string)
| 206 | } |
| 207 | |
| 208 | func (parser *Parser) parseSetting(name string) error { |
| 209 | parser.readToken() |
| 210 | value, err := parser.parseSettingValue() |
| 211 | if err != nil { |
| 212 | return err |
| 213 | } |
| 214 | if isSemicolonOrNewline(parser.curTok.ID) == false { |
| 215 | msg := fmt.Sprintf("expected ';' or '\n' instead found '%s'", parser.curTok.Literal) |
| 216 | return parser.syntaxError(msg) |
| 217 | } |
| 218 | parser.readToken() |
| 219 | |
| 220 | parser.curSection.Set(name, value) |
| 221 | return nil |
| 222 | } |
| 223 | |
| 224 | func (parser *Parser) parseInclude() error { |
| 225 | if parser.curTok.ID != token.STRING { |
no test coverage detected