Skip to content

Commit

Permalink
Mark spaces between backslash and EOL as an error
Browse files Browse the repository at this point in the history
  • Loading branch information
chpock committed Feb 11, 2024
1 parent 935e045 commit fdaaac0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hrc/hrc/scripts/shell-posix.hrc
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,8 @@
</scheme>

<scheme name="escapes">
<!-- spaces between backslash and EOL are usually unexpected -->
<block start="/\\\s+$/" end="/$/" scheme="def:empty" region="Error"/>
<!-- escape new line -->
<block start="/\\$/" end="/^/" scheme="def:empty"/>
<!-- ignore other escaped char -->
Expand Down

0 comments on commit fdaaac0

Please sign in to comment.