]> git.lyx.org Git - lyx.git/blobdiff - src/Lexer.cpp
Remove traces of Q_CYGWIN_WIN
[lyx.git] / src / Lexer.cpp
index 08b2f08077048585d44a09c37fcaefcfaaa7d937..9061d7c0b3ab0ac7a23a25681900a720baa3f452 100644 (file)
@@ -499,7 +499,7 @@ bool Lexer::Pimpl::nextToken()
                char cc = 0;
                is.get(cc);
                c = cc;
-               if (c >= ' ' && is) {
+               if ((c >= ' ' || c == '\t') && is) {
                        buff.clear();
 
                        if (c == '\\') { // first char == '\\'
@@ -513,7 +513,7 @@ bool Lexer::Pimpl::nextToken()
                                        buff.push_back(c);
                                        is.get(cc);
                                        c = cc;
-                               } while (c >= ' ' && c != '\\' && is);
+                               } while ((c >= ' ' || c == '\t') && c != '\\' && is);
                        }
 
                        if (c == '\\')
@@ -636,6 +636,7 @@ void Lexer::setCommentChar(char c)
        pimpl_->setCommentChar(c);
 }
 
+
 int Lexer::lex()
 {
        return pimpl_->lex();