Replace regex with prefix substr for tab-complete.
[cycript.git] / Parser.cpp
index 32d3d0a7b969f969da5cafbd428f98291c3bdb5b..f2d3ad14d42e0171b618de80fd31a7821f0ed3a5 100644 (file)
@@ -28,7 +28,6 @@ CYRange WordEndRange_  (0x3ff001000000000LLU, 0x7fffffe87fffffeLLU); // A-Za-z_$
 
 CYDriver::CYDriver(const std::string &filename) :
     state_(CYClear),
-    nobrace_(false),
     data_(NULL),
     size_(0),
     file_(NULL),
@@ -39,6 +38,7 @@ CYDriver::CYDriver(const std::string &filename) :
     context_(NULL),
     mode_(AutoNone)
 {
+    memset(&no_, 0, sizeof(no_));
     in_.push(false);
     ScannerInit();
 }