From bb68cf20113cbc4ff2207f9bbe3c7eb9dff37bdf Mon Sep 17 00:00:00 2001 From: Shlomi Noach Date: Thu, 25 Aug 2016 12:21:16 +0200 Subject: [PATCH] config file allows underscore variables --- vendor/gopkg.in/gcfg.v1/scanner/scanner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/gopkg.in/gcfg.v1/scanner/scanner.go b/vendor/gopkg.in/gcfg.v1/scanner/scanner.go index 7084c23..1ec8e89 100644 --- a/vendor/gopkg.in/gcfg.v1/scanner/scanner.go +++ b/vendor/gopkg.in/gcfg.v1/scanner/scanner.go @@ -148,7 +148,7 @@ func (s *Scanner) scanComment() string { } func isLetter(ch rune) bool { - return 'a' <= ch && ch <= 'z' || 'A' <= ch && ch <= 'Z' || ch >= 0x80 && unicode.IsLetter(ch) + return 'a' <= ch && ch <= 'z' || 'A' <= ch && ch <= 'Z' || ch == '_' || ch >= 0x80 && unicode.IsLetter(ch) } func isDigit(ch rune) bool {