- 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)
## 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"
-## 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)\>"
## Comments
color cyan "#[^{].*$" "#$"
color brightcyan "##[^{].*$" "##$"
+## "Here" docs
+color green start="<<-?'?EOT'?" end="^EOT"
## Some common markers
color brightcyan "(XXX|TODO|FIXME|\?\?\?)"
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 ""(\\.|[^"])*"" "'(\\.|[^'])*'"