colorer / Colorer-schemes

Syntax and color schemes for colorer library
31 stars 25 forks source link

shell, Makefile: different colors for \<newline> and \<space> #119

Closed singalen closed 9 months ago

singalen commented 3 years ago

This would help to prevent a lot of silly errors. \<space><newline> in not noticeable in far2l in .sh script now.

ctapmex commented 9 months ago

I didn't understand what was required, apparently not in the context. But @chpock claims to be fixed in https://github.com/colorer/Colorer-schemes/releases/tag/v1.2.0.36

chpock commented 9 months ago

In shell scripts it is possible to escape <newline> by backslash, and <newline> will not end the command, but it will continue on the next line. In this case, <newline> must be imidiatlly followed by backslash.

However, when there are spaces between backslash and <newline>, the <newline> is not escaped and command is not continue to the next line. Since, such spaces are usually not visible, it can be hard to understand why behaviour is not as expected.

i.e. @singalen asked to mark such spaces after backslash as an error:

изображение

ctapmex commented 9 months ago

ok/ fixed in https://github.com/colorer/Colorer-schemes/releases/tag/v1.2.0.36