Fix java commenting issues
This commit is contained in:
parent
35a370626f
commit
73e2f15232
@ -48,7 +48,7 @@ public class Java implements ProgrammingLanguage {
|
|||||||
e("\\b[A-Z]\\w+\\b", "identifier"),
|
e("\\b[A-Z]\\w+\\b", "identifier"),
|
||||||
e("\\b(" + String.join("|", keywords) + ")\\b",
|
e("\\b(" + String.join("|", keywords) + ")\\b",
|
||||||
"keyword"),
|
"keyword"),
|
||||||
e("(?://.*)|/\\*(?:\\n|.)*\\*/", "comment")
|
e("(?://.*)|/\\*(?:\\n|.)*?\\*/", "comment")
|
||||||
);
|
);
|
||||||
|
|
||||||
public String getName() {
|
public String getName() {
|
||||||
@ -113,8 +113,7 @@ public class Java implements ProgrammingLanguage {
|
|||||||
lines.length < 2 ||
|
lines.length < 2 ||
|
||||||
Arrays.asList(Arrays.copyOfRange(lines, 1, lines.length - 1))
|
Arrays.asList(Arrays.copyOfRange(lines, 1, lines.length - 1))
|
||||||
.stream()
|
.stream()
|
||||||
.map(l -> l.startsWith(" * "))
|
.allMatch(l -> l.startsWith(" * "));
|
||||||
.allMatch(b -> b);
|
|
||||||
|
|
||||||
return
|
return
|
||||||
Stream.of(
|
Stream.of(
|
||||||
|
Loading…
Reference in New Issue
Block a user