Compare commits
No commits in common. "comment-length-limit" and "master" have entirely different histories.
comment-le
...
master
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@ out/
|
||||
*.zip
|
||||
prg/**/*.ast
|
||||
prg/**/*.out
|
||||
prg/**/*.pins25
|
@ -1,2 +0,0 @@
|
||||
//1234567890
|
||||
//12345678901
|
@ -246,14 +246,8 @@ public class LexAn implements AutoCloseable {
|
||||
buffToken = new Token(start, Token.Symbol.DIV, "/");
|
||||
return;
|
||||
}
|
||||
nextChar();
|
||||
|
||||
int length = 0;
|
||||
while (buffChar != '\n' && buffChar != -1) {
|
||||
length++;
|
||||
if (length > 10) {
|
||||
throw new Report.Error(currentLocation(), "Comments can only be 10 characters long");
|
||||
}
|
||||
nextChar();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user