Browse Source

use reference data type instead

fixes #6
pull/16/head
Brett Langdon 11 years ago
parent
commit
ba39428519
1 changed files with 1 additions and 5 deletions
  1. +1
    -5
      parser.go

+ 1
- 5
parser.go View File

@ -105,11 +105,7 @@ func (parser *Parser) parseReference(startingSection *Section, period bool) (Val
return nil, parser.syntaxError(fmt.Sprintf("expected IDENTIFIER after PERIOD")) return nil, parser.syntaxError(fmt.Sprintf("expected IDENTIFIER after PERIOD"))
} }
value, err := startingSection.Resolve(name)
if err != nil {
err = errors.New("reference error, " + err.Error())
}
return value, nil
return NewReference(name, startingSection), nil
} }
func (parser *Parser) parseSetting(name string) error { func (parser *Parser) parseSetting(name string) error {


Loading…
Cancel
Save