Skip to content

Commit

Permalink
Apply auto-formatting, re #2
Browse files Browse the repository at this point in the history
  • Loading branch information
safris committed Feb 27, 2024
1 parent 539957a commit 8d3e0bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/main/java/org/openjax/cdm/lexer/Lexer.java
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,8 @@ else if (ch == '/') {
if (token == Delimiter.SLASH) { // Start of line comment
// find end of line
// index from // to end of comment, not including newline
// this is the only situation where the token is added at time of detection of end of block, cause the eol char is not supposed to be a part of the
// this is the only situation where the token is added at time of detection of end of block, cause the eol char is not supposed to
// be a part of the
// token
len = eol.search(in, chars, i);
audit.push(Span.LINE_COMMENT, i - 2, len + 2);
Expand Down
8 changes: 4 additions & 4 deletions src/test/java/org/openjax/cdm/lexer/LexerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ public void testTokenize() throws IOException {
final String expected = new String(Files.readAllBytes(file.toPath()));
final String out = audit.toString();
assertEquals(expected, out);
/*for (int x = 0, x$ = indices.size(); x < x$; ++x) { // [?]
final Index index = indices.get(x);
if (logger.isInfoEnabled()) logger.info(Strings.padFixed(index.token + ":", 16) + new String(bytes, index.start, index.length + 1));
}*/
/*
* for (int x = 0, x$ = indices.size(); x < x$; ++x) { // [?] final Index index = indices.get(x); if (logger.isInfoEnabled()) {
* logger.info(Strings.padFixed(index.token + ":", 16) + new String(bytes, index.start, index.length + 1)); } }
*/
}
}

0 comments on commit 8d3e0bb

Please sign in to comment.