]> git.saurik.com Git - cycript.git/blobdiff - Cycript.l
Implemented CYSelector::Output, split CYSelectorPart, and further enforced CYNext.
[cycript.git] / Cycript.l
index 13ae15e399f5526e5aff6eb9098979ec14baf374..4a5440346d7664702fa7e41a408e717d9cd59d5c 100644 (file)
--- a/Cycript.l
+++ b/Cycript.l
@@ -196,7 +196,14 @@ Escape   \\[\\'"bfnrtv]|\\0|\\x[0-9a-fA-F]{2}|\\u[0-9a-fA-F]{4}
 
 [ \t] L
 <<EOF>> L yyterminate();
-. yyterminate();
+
+. {
+    CYDriver::Error error;
+    error.location_ = *yylloc;
+    error.message_ = "syntax error, unknown token";
+    yyextra->errors_.push_back(error);
+    yyterminate();
+}
 
 %%