asedunov / intellij-crystal-lang

An IntelliJ plugin for Crystal language
Apache License 2.0
39 stars 5 forks source link

Report an error when heredoc indents are too small #69

Closed asedunov closed 1 year ago

asedunov commented 1 year ago

E.g. in the following example supposed indent (as specified by the end identifier) is 3 but some lines in the string literal have ident of 2 or less. Since Crystal compiler reports such cases as error, we should as well:

<<-FOO
   Good line
  Bad line
 Another bad line
   Good line again
   FOO

The plugin should also suggest a quickfix to adjust wrong indents