Class NormalizedLineSeparatorInformation
java.lang.Object
tools.refinery.language.formatting2.NormalizedLineSeparatorInformation
- All Implemented Interfaces:
org.eclipse.xtext.formatting.ILineSeparatorInformation
public class NormalizedLineSeparatorInformation
extends Object
implements org.eclipse.xtext.formatting.ILineSeparatorInformation
Make sure we use a single
\n as a line separator on all platforms.
On the frontend, CodeMirror normalizes line separators, so a discrepancy would lead to incorrect highlight and error marker offsets between the server and client.
This also ensures the CLI uses normalized line endings on all platforms.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.xtext.formatting.ILineSeparatorInformation
org.eclipse.xtext.formatting.ILineSeparatorInformation.Default -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NormalizedLineSeparatorInformation
public NormalizedLineSeparatorInformation()
-
-
Method Details
-
getLineSeparator
- Specified by:
getLineSeparatorin interfaceorg.eclipse.xtext.formatting.ILineSeparatorInformation
-