Skip to content

Commit

Permalink
Add a red highlight to YAML lines with trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
JKHSDTV committed Aug 14, 2020
1 parent 1d1c3aa commit 1b25243
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions yaml.nanorc
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ color brightwhite ":(\s|\t|$)"

# Comments
color brightblue "(^|[[:space:]])#.*$"

# Trailing whitespace
color ,red "[[:space:]]+$"

0 comments on commit 1b25243

Please sign in to comment.