Lines Matching full:foo*

235     {"\"foo\"", Tokenizer::TYPE_STRING},
347 {"foo 1 1.2 + 'bar'",
349 {Tokenizer::TYPE_IDENTIFIER, "foo", 0, 0, 3},
368 {"foo bar\nrab oof",
370 {Tokenizer::TYPE_IDENTIFIER, "foo", 0, 0, 3},
378 {"foo\tbar \tbaz",
380 {Tokenizer::TYPE_IDENTIFIER, "foo", 0, 0, 3},
387 {"\"foo\tbar\" baz",
389 {Tokenizer::TYPE_STRING, "\"foo\tbar\"", 0, 0, 12},
395 {"foo // This is a comment\n"
398 {Tokenizer::TYPE_IDENTIFIER, "foo", 0, 0, 3},
404 {"foo /* This is a block comment */ bar",
406 {Tokenizer::TYPE_IDENTIFIER, "foo", 0, 0, 3},
412 {"foo # bar\n"
415 {Tokenizer::TYPE_IDENTIFIER, "foo", 0, 0, 3},
423 {"foo\n\t\r\v\fbar",
425 {Tokenizer::TYPE_IDENTIFIER, "foo", 0, 0, 3},
490 "foo # bar\n"
494 const char* const kTokens[] = {"foo", // "# bar" is ignored
839 // for which this is true must end with "foo" as
850 {"'\\l' foo", true, "0:2: Invalid escape sequence in string literal.\n"},
851 {"'\\X' foo", true, "0:2: Invalid escape sequence in string literal.\n"},
852 {"'\\x' foo", true, "0:3: Expected hex digits for escape sequence.\n"},
853 {"'foo", false, "0:4: Unexpected end of string.\n"},
855 {"'\\u01' foo", true,
857 {"'\\u01' foo", true,
859 {"'\\uXYZ' foo", true,
863 {"123foo", true, "0:3: Need space between number and identifier.\n"},
866 {"0x foo", true, "0:2: \"0x\" must be followed by hex digits.\n"},
867 {"0541823 foo", true,
869 {"0x123z foo", true, "0:5: Need space between number and identifier.\n"},
870 {"0x123.4 foo", true, "0:5: Hex and octal numbers must be integers.\n"},
871 {"0123.4 foo", true, "0:4: Hex and octal numbers must be integers.\n"},
874 {"1e foo", true, "0:2: \"e\" must be followed by exponent.\n"},
875 {"1e- foo", true, "0:3: \"e\" must be followed by exponent.\n"},
876 {"1.2.3 foo", true,
878 {"1e2.3 foo", true,
880 {"a.1 foo", true,
883 {"1.0f foo", true, "0:3: Need space between number and identifier.\n"},
889 {"/*/*/ foo", true,
894 {"\b foo", true, "0:0: Invalid control characters encountered in text.\n"},
895 {"\b\b foo", true,
906 {std::string("\0foo", 4), true,
908 {std::string("\0\0foo", 5), true,
912 {"\300foo", true, "0:0: Interpreting non ascii codepoint 192.\n"},
922 // Ignore all input, except remember if the last token was "foo".
925 last_was_foo = tokenizer.current().text == "foo";
931 // If the error was recoverable, make sure we saw "foo" after it.
940 std::string text = "foo bar";
951 // Only "foo" should have been read.
952 EXPECT_EQ(strlen("foo"), input.ByteCount());