Skip to content

Commit 47e0ae4

Browse files
committed
fixes; property view; generated source view; refactorings
1 parent 24c58fe commit 47e0ae4

7 files changed

+253
-78
lines changed

LispHighlighter.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ void Highlighter::highlightBlock(const QString& text)
149149
}
150150
}else if( lexerState == 2 )
151151
{
152-
// wir sind in einem multi line hex string
152+
// wir sind in einem multi line string
153153
QTextCharFormat f = formatForCategory(C_Str);
154154
// f.setProperty( TokenProp, int(Tok_hexstring) );
155155
int pos = text.indexOf('"');

LispLexer.cpp

+6-4
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,12 @@ QByteArray Token::getSymbol(const QByteArray& str)
8383
return sym;
8484
}
8585

86-
QStringList Token::getAllSymbols()
86+
QByteArrayList Token::getAllSymbols()
8787
{
8888
QHash<QByteArray,QByteArray>::const_iterator i;
89-
QStringList res;
89+
QByteArrayList res;
9090
for( i = s_symbols.begin(); i != s_symbols.end(); ++i )
91-
res.append( QString::fromUtf8(i.key()) );
92-
res.sort(Qt::CaseInsensitive);
91+
res.append( i.key() );
9392
return res;
9493
}
9594

@@ -487,10 +486,13 @@ Token Lexer::string()
487486
Token Lexer::comment()
488487
{
489488
QByteArray str;
489+
// first eat (*
490490
char c = readc();
491491
str += c;
492492
c = readc();
493493
str += c;
494+
495+
// now find end of comment considering included lists and strings
494496
int level = 0;
495497
bool inString = false;
496498
QList<int> brackets; // bracket at level

LispLexer.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ struct Token
6969
const char* getString() const;
7070

7171
static QByteArray getSymbol( const QByteArray& );
72-
static QStringList getAllSymbols();
72+
static QByteArrayList getAllSymbols();
7373
};
7474

7575
class Lexer : public QObject

0 commit comments

Comments
 (0)