Skip to content
Snippets Groups Projects
Commit 0320894b authored by Johannes Mey's avatar Johannes Mey
Browse files

fix bug: newline does not belong to line comment

parent 98760306
No related branches found
No related tags found
1 merge request!2Feature/autoformat
...@@ -33,7 +33,7 @@ import com.intellij.psi.TokenType; ...@@ -33,7 +33,7 @@ import com.intellij.psi.TokenType;
WhiteSpace = [ \t\n\r\f] WhiteSpace = [ \t\n\r\f]
// TODO what is /**/ in Java? Is this caputered here? // TODO what is /**/ in Java? Is this caputered here?
SingleLineComment = "//" [^\n\r]* (\n | \r | \r\n) SingleLineComment = "//" [^\n\r]*
FormalComment = "/**" [^*]* [*]+([^*/][^*]*[*]+)*[/] FormalComment = "/**" [^*]* [*]+([^*/][^*]*[*]+)*[/]
MultiLineComment = "/*" [^*]+ [*]+([^*/][^*]*[*]+)*[/] MultiLineComment = "/*" [^*]+ [*]+([^*/][^*]*[*]+)*[/]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment