]> git.lyx.org Git - lyx.git/blobdiff - src/lyxlex_pimpl.C
cosmetic fix
[lyx.git] / src / lyxlex_pimpl.C
index 3248c4a849945ada2300767b53c802fbd902874a..2962302d062b789ef82297bf0839133851f5d577 100644 (file)
@@ -9,6 +9,8 @@
 
 #include <algorithm>
 
+using namespace lyx::support;
+
 using std::sort;
 using std::ostream;
 using std::ios;
@@ -171,7 +173,7 @@ bool LyXLex::Pimpl::next(bool esc /* = false */)
                                // That is not fast... (Lgb)
                                string dummy;
                                getline(is, dummy);
-                               
+
                                lyxerr[Debug::LYXLEX] << "Comment read: `" << c
                                                      << dummy << '\'' << endl;
 #else
@@ -184,7 +186,7 @@ bool LyXLex::Pimpl::next(bool esc /* = false */)
 
                        if (c == '\"') {
                                buff.clear();
-                               
+
                                do {
                                        is.get(cc);
                                        c = cc;
@@ -212,7 +214,7 @@ bool LyXLex::Pimpl::next(bool esc /* = false */)
                                // lot better to use the functions from cctype
                        if (c > ' ' && is)  {
                                buff.clear();
-                               
+
                                do {
                                        buff.push_back(c);
                                        is.get(cc);
@@ -255,7 +257,7 @@ bool LyXLex::Pimpl::next(bool esc /* = false */)
                        if (c == '\\') {
                                // escape
                                buff.clear();
-                               
+
                                do {
                                        if (c == '\\') {
                                                // escape the next char
@@ -277,7 +279,7 @@ bool LyXLex::Pimpl::next(bool esc /* = false */)
                                // That is still not fast... (Lgb)
                                string dummy;
                                getline(is, dummy);
-                               
+
                                lyxerr[Debug::LYXLEX] << "Comment read: `" << c
                                                      << dummy << '\'' << endl;
 #else
@@ -292,7 +294,7 @@ bool LyXLex::Pimpl::next(bool esc /* = false */)
                        // string
                        if (c == '\"') {
                                buff.clear();
-                               
+
                                bool escaped = false;
                                do {
                                        escaped = false;
@@ -326,7 +328,7 @@ bool LyXLex::Pimpl::next(bool esc /* = false */)
 
                        if (c > ' ' && is) {
                                buff.clear();
-                               
+
                                do {
                                        if (c == '\\') {
                                                // escape the next char
@@ -384,7 +386,7 @@ int LyXLex::Pimpl::lex()
 bool LyXLex::Pimpl::eatLine()
 {
        buff.clear();
-       
+
        unsigned char c = '\0';
        char cc = 0;
        while (is && c != '\n') {
@@ -433,7 +435,7 @@ bool LyXLex::Pimpl::nextToken()
                c = cc;
                if (c >= ' ' && is) {
                        buff.clear();
-                       
+
                        if (c == '\\') { // first char == '\\'
                                do {
                                        buff.push_back(c);