Allow line comments in Bolt sources
This commit is contained in:
parent
fcea25c9bb
commit
45b5f113a0
1 changed files with 12 additions and 2 deletions
|
@ -77,10 +77,20 @@ namespace bolt {
|
|||
for (;;) {
|
||||
StartLoc = getCurrentLoc();
|
||||
C0 = getChar();
|
||||
if (!isWhiteSpace(C0)) {
|
||||
if (isWhiteSpace(C0)) {
|
||||
continue;
|
||||
}
|
||||
if (C0 == '#') {
|
||||
for (;;) {
|
||||
C0 = getChar();
|
||||
if (C0 == '\n' || C0 == EOF) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
switch (C0) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue