Searched refs:tok (Results 1 – 4 of 4) sorted by relevance
62 tok rune member119 for _, tok := range toks {120 if p.tok != tok {121 p.errorf("expected %s, found %s", scanner.TokenString(tok),122 scanner.TokenString(p.tok))131 if p.tok != scanner.EOF {132 p.tok = p.scanner.Scan()133 for p.tok == '\r' {134 p.tok = p.scanner.Scan()137 if p.tok == '\n' {[all …]
103 tok rune member143 for _, tok := range toks {144 if p.tok != tok {145 p.errorf("expected %s, found %s", scanner.TokenString(tok),146 scanner.TokenString(p.tok))155 if p.tok != scanner.EOF {156 p.tok = p.scanner.Scan()157 if p.tok == scanner.Comment {159 for p.tok == scanner.Comment {166 p.tok = p.scanner.Scan()[all …]
169 tok := s.Scan()173 if tok == scanner.Ident {192 } else if tok == '@' {195 } else if tok == scanner.EOF {204 tok = s.Scan()208 if tok != scanner.Ident {213 tok = s.Scan()217 if tok == ';' {219 } else if tok == '.' {
248 for _, tok := range f[1:] {249 matches = matches || matchBuildTag(tok)