Explorar o código

FIX.允许name下划线开头

RegMs If %!s(int64=4) %!d(string=hai) anos
pai
achega
3e15c197db
Modificáronse 2 ficheiros con 1 adicións e 1 borrados
  1. BIN=BIN
      mua
  2. 1 1
      type.go

BIN=BIN
mua


+ 1 - 1
type.go

@@ -17,7 +17,7 @@ const (
 )
 
 const (
-	_name      = `([A-Za-z]\w*)`
+	_name      = `([A-Za-z_]\w*)`
 	_nameOrInt = "(" + _name + `|\d+)`
 	_index     = "(" + _nameOrInt + "|:|" + _nameOrInt + ":|:" + _nameOrInt + "|" + _nameOrInt + ":" + _nameOrInt + ")"
 )