]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/DEVEL/mathml_editor/src/LPushLexer.cc
Branch V7_3_new_exportation merged.
[helm.git] / helm / DEVEL / mathml_editor / src / LPushLexer.cc
index 74cda410aa5abc77738684c2304fb9a8762f6f14..414dd7826c10af94601698ea2093ab8e1fe47b29 100644 (file)
@@ -24,6 +24,7 @@
  */
 
 #include <string>
+#include <cctype>
 
 #include "ALogger.hh"
 #include "TToken.hh"
@@ -40,6 +41,8 @@ LPushLexer::reset()
 {
   buffer.erase();
   state = ACCEPT;
+
+  displayCursor();
 }
 
 void
@@ -187,7 +190,7 @@ LPushLexer::push(char ch)
        }
       break;
     case ESCAPED_CHARACTER:
-      if ((ch == '-') || (ch == '_'))
+      if ((ch == '-') || (ch == '_') || (ch == '/'))
         {
          buffer.push_back(ch);
          state = IDENTIFIER;