in nanorc.sample, per Benno Schulenberg's patch, tweak the "shellscript"
regexes to properly color all special variables, such as $? and $@ git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3598 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Этот коммит содержится в:
родитель
1f5cf0d111
Коммит
95ff10ec47
@ -445,6 +445,8 @@ CVS code -
|
|||||||
used to highlight trailing whitespace, since we now support
|
used to highlight trailing whitespace, since we now support
|
||||||
background colors without foreground colors. (DLR)
|
background colors without foreground colors. (DLR)
|
||||||
- Further simplify the "groff" regexes. (DLR)
|
- Further simplify the "groff" regexes. (DLR)
|
||||||
|
- Tweak the "shellscript" regexes to properly color all special
|
||||||
|
variables, such as $? and $@. (Benno Schulenberg)
|
||||||
- src/Makefile.am:
|
- src/Makefile.am:
|
||||||
- If we're uninstalling, remove the "rnano" symlink. (DLR, found
|
- If we're uninstalling, remove the "rnano" symlink. (DLR, found
|
||||||
by Benno Schulenberg)
|
by Benno Schulenberg)
|
||||||
|
@ -360,8 +360,8 @@
|
|||||||
# color green "-[Ldefgruwx]\>"
|
# color green "-[Ldefgruwx]\>"
|
||||||
# color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>"
|
# color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>"
|
||||||
# color brightblue "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\>"
|
# color brightblue "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\>"
|
||||||
# icolor brightred "\$\{?[0-9A-Z_]+\}?"
|
# icolor brightred "\$\{?[0-9A-Z_!@#$*-?]+\}?"
|
||||||
# color yellow "#.*$"
|
# color yellow "(^|[[:space:]])#.*$"
|
||||||
# color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
|
# color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
|
||||||
|
|
||||||
## Here is an example for your .nanorc.
|
## Here is an example for your .nanorc.
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user