add various minor regex and comment tweaks, mostly by John M. Gabriele
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3641 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Этот коммит содержится в:
родитель
131909fdea
Коммит
9368217972
@ -506,16 +506,22 @@ CVS code -
|
||||
- Add comments describing the relationships between syntax file
|
||||
names and the names used as their short descriptions. (John M.
|
||||
Gabriele)
|
||||
- doc/java.nanorc:
|
||||
- Simplify a comment. (DLR)
|
||||
- doc/man.nanorc:
|
||||
- Change the name of the "manpage" regexes to "man", for
|
||||
consistency. (John M. Gabriele)
|
||||
- doc/nanorc.nanorc:
|
||||
- Tweak the "nanorc" regexes to color comments starting with a
|
||||
double ## cyan instead of bright blue. (John M. Gabriele)
|
||||
- doc/ruby.nanorc:
|
||||
- Add regex for "here" docs. (John M. Gabriele)
|
||||
- doc/sh.nanorc:
|
||||
- Tweak the regex for special variables, moving "-" to the end,
|
||||
to avoid excessive coloring or an "Invalid range end" error.
|
||||
(Benno Schulenberg)
|
||||
- Tweak the "sh" regexes to color comments cyan instead of
|
||||
yellow. (John M. Gabriele)
|
||||
- src/Makefile.am:
|
||||
- If we're uninstalling, remove the "rnano" symlink. (DLR, found
|
||||
by Benno Schulenberg)
|
||||
|
@ -204,7 +204,7 @@
|
||||
## make use of such files (which can only include "syntax", "color", and
|
||||
## "icolor" commands) as follows:
|
||||
##
|
||||
## include "syntax file"
|
||||
## include "/path/to/syntax_file.nanorc"
|
||||
##
|
||||
## Unless otherwise noted, the name of the syntax file (without the
|
||||
## ".nanorc" extension) should be the same as the "short description"
|
||||
|
@ -1,4 +1,4 @@
|
||||
## Here is an example for Java source.
|
||||
## Here is an example for Java.
|
||||
##
|
||||
syntax "java" "\.java$"
|
||||
color green "\<(boolean|byte|char|double|float|int|long|new|short|this|transient|void)\>"
|
||||
|
@ -23,5 +23,7 @@ color green "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "
|
||||
## Comments
|
||||
color cyan "#[^{].*$" "#$"
|
||||
color brightcyan "##[^{].*$" "##$"
|
||||
## "Here" docs
|
||||
color green start="<<-?'?EOT'?" end="^EOT"
|
||||
## Some common markers
|
||||
color brightcyan "(XXX|TODO|FIXME|\?\?\?)"
|
||||
|
@ -8,5 +8,5 @@ color green "-[Ldefgruwx]\>"
|
||||
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)\>"
|
||||
icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?"
|
||||
color yellow "(^|[[:space:]])#.*$"
|
||||
color cyan "(^|[[:space:]])#.*$"
|
||||
color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user