Merge pull request #199 from github/config-underscore

config file allows underscore variables
This commit is contained in:
Shlomi Noach 2016-08-26 08:30:00 +02:00 committed by GitHub
commit 2663b00e32

View File

@ -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 {