Skip to content

Commit

Permalink
Apply change from scopatz/nanorc#381 to bash.nanorc and zsh.nanorc
Browse files Browse the repository at this point in the history
  • Loading branch information
StaticPH committed Aug 25, 2022
1 parent 553171b commit 114186a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .config/nano/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Files copied directly from https://github.com/scopatz/nanorc
There is a _very_ good chance these are out of date.
* asm.nanorc
* awk.nanorc
* bash.nanorc
* c.nanorc
* cmake.nanorc
* conf.nanorc
Expand Down Expand Up @@ -33,6 +33,7 @@
* zsh.nanorc

# Modified:
* bash.nanorc (modified from sh.nanorc; frankly, this probably shouldn't have a different name)
* git.nanorc
* html.nanorc
* markdown.nanorc
Expand Down
4 changes: 2 additions & 2 deletions .config/nano/bash.nanorc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ color brightblue "\<(fc|history)\>"
color brightblue "\<(set|shopt)\>"
#
icolor brightgreen "^\s+[0-9A-Z_]+\s+\(\)"
icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?"
icolor brightred "\$\{?[0-9A-Z_!@#%$*?-]+\}?"
color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
color cyan "(^|[[:space:]])#.*$"
color ,green "[[:space:]]+$"
color ,green "[[:space:]]+$"
4 changes: 2 additions & 2 deletions .config/nano/zsh.nanorc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ color brightmagenta "\<(base(32|64)|basename|cat|chcon|chgrp|chmod|chown|chroot|
icolor brightgreen "^\s+(function\s+)[0-9A-Z_]+\s+\(\)"

## Variables
icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?"
icolor brightred "\$\{?[0-9A-Z_!@#%$*?-]+\}?"

## Strings
color yellow ""(\\.|[^"])*""
Expand All @@ -41,4 +41,4 @@ color cyan "(^|[[:space:]])#.*$"
color brightcyan "(^|[[:space:]])##.*$"

## Trailing spaces
color ,green "[[:space:]]+$"
color ,green "[[:space:]]+$"

0 comments on commit 114186a

Please sign in to comment.