java icon indicating copy to clipboard operation
java copied to clipboard

Removes redundant spaces in single tokens with multiline separators

Open goto1134 opened this issue 1 year ago • 1 comments

Now cases when a single keyword is split by multiple multiline separators are supported.

work\
 spa\
 ce {
}

Also fixes redundant spaces inside quoted strings. The following code was parsed as "Soft ware System" before.

"Soft\
   ware \
   Sys\
   tem"

BREAKING CHANGE! The following code produced valid workspace before, because whitespaces in the second line were preserved. Now the first three lines will produce a single token workspace{.

workspace\
 \
  {
}

goto1134 avatar Apr 01 '24 11:04 goto1134

@simonbrowndotje , could you please take a look?

goto1134 avatar Mar 04 '25 12:03 goto1134

@simonbrowndotje, hello, it's unfortunate that the change is rejected. Is there anything I can do to apply the change to the language?

goto1134 avatar Sep 26 '25 19:09 goto1134