Comment lexing error
Issue #144
resolved
ExtendJ 8.0.1-g25ae2d5
There is an error in the scanning of multiline comments causing some empty comments to extend too far. For example:
public class Test {
/**/
public static void main(String[] args) {
new Test();
}
/**/
public Test() {
}
}
The main method is removed in the above class.
Comments (3)
-
reporter -
reporter The fix is to simply change the regex to the following:
DocumentationComment = "/**" [^/] ~"*/"
-
reporter - changed status to resolved
Fix documentation comment regex
Fixed an error in the documentation comment regex which caused some comments to eat up too many input tokens.
fixes
#144(bitbucket)→ <<cset 4a602e2190bd>>
- Log in to comment
The error seems to be caused by the documentation comment regex in ExtendJ:
DocumentationComment = "/**" ~"*/"
This lexes the whole
/**/.../**/
part as a single documentation comment.