func init() { lex.TokenNameMap[TokenShortDesc] = &lex.TokenInfo{Description: "SHORTDESC"} lex.TokenNameMap[TokenLongDesc] = &lex.TokenInfo{Description: "LONGDESC"} lex.TokenNameMap[TokenKind] = &lex.TokenInfo{Description: "kind"} // OverRide the Identity Characters in QLparse lex.IDENTITY_CHARS = "_./-" lex.LoadTokenInfo() InfluxQlDialect.Init() }
func init() { // inject any new tokens into QLBridge.Lex describing the custom tokens we created lex.TokenNameMap[TokenSubscribeTo] = &lex.TokenInfo{Description: "subscribeto"} // OverRide the Identity Characters in lexer to allow a dash in identity lex.IDENTITY_CHARS = "_./-" lex.LoadTokenInfo() ourDialect.Init() }