Skip to content

Commit

Permalink
fix(sh): highlight ${name%%pattern} in .sh files
Browse files Browse the repository at this point in the history
Originally proposed in scopatz#381
  • Loading branch information
SamantazFox authored and galenguyer committed Nov 2, 2022
1 parent 6194708 commit ffa1733
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sh.nanorc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ color brightblue "\<(alias|bg|bind|break|builtin|caller|cd|command|compgen|compl
## not buitins:
## cat|chmod|chown|cp|env|grep|install|ln|make|mkdir|mv|rm|sed|tar|touch
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:]]+$"
2 changes: 1 addition & 1 deletion zsh.nanorc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,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 Down

0 comments on commit ffa1733

Please sign in to comment.