-
Notifications
You must be signed in to change notification settings - Fork 859
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Text Blocks (JEP 368) #382
Comments
Some errors are reported when calling |
Or is error-prone not there, yet? Line 99 in 0a449a5
|
How about omit Text Blocks entirely from formatting? |
@sormuras if existing formatting changes the indent position of the start of the block, GJF should reindent the text block to preserve the gray-space eliding by the compiler. Reformatting shouldn't break tests, which that may. |
Lines contributing to a |
IIRC, the position of the start See https://blog.codefx.org/java/text-blocks/ (as jdk.java.net doesn't work at the moment) |
Second Preview of Text Blocks issued: https://openjdk.java.net/jeps/368
Updated issue title accordingly. |
Syntax and more details at
https://openjdk.java.net/jeps/355https://openjdk.java.net/jeps/368Formatting a Java source file...
java -jar google-java-format-1.7-all-deps.jar TextBlock.java
...that contains Text Blocks...
...fails with:
The text was updated successfully, but these errors were encountered: