nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 1bb4db6409fa2c74d062b7191f9827e2a3e665fd
parent e693023de880b276dcfe056e336034776bc13ed6
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Thu,  2 Nov 2006 06:21:43 +0000

add POV-Ray syntax from Donnie Berkholz, with a few tweaks of mine


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3928 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
MChangeLog | 3+++
Mdoc/nanorc.sample.in | 3+++
Mdoc/syntax/Makefile.am | 1+
Adoc/syntax/pov.nanorc | 15+++++++++++++++
4 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,6 +1,9 @@ CVS code - - General: - Miscellaneous comment fixes. (DLR) + - Add syntax for POV-Ray files. New file doc/syntax/pov.nanorc; + changes to doc/nanorc.sample.in and doc/syntax/Makefile.am. + (Donnie Berkholz, minor tweaks by DLR) - AUTHORS: - Update for the 2.0 branch of nano. (DLR) - nano.spec.in, doc/faq.html: diff --git a/doc/nanorc.sample.in b/doc/nanorc.sample.in @@ -255,3 +255,6 @@ ## Bourne shell scripts # include "@PKGDATADIR@/sh.nanorc" + +## POV-Ray +# include "@PKGDATADIR@/pov.nanorc" diff --git a/doc/syntax/Makefile.am b/doc/syntax/Makefile.am @@ -8,6 +8,7 @@ pkgdata_DATA = asm.nanorc \ nanorc.nanorc \ patch.nanorc \ perl.nanorc \ + pov.nanorc \ python.nanorc \ ruby.nanorc \ sh.nanorc \ diff --git a/doc/syntax/pov.nanorc b/doc/syntax/pov.nanorc @@ -0,0 +1,15 @@ +## Here is an example for POV-Ray. +## +syntax "pov" "\.(pov|POV|povray|POVRAY)$" +color brightcyan "^[[:space:]]*#[[:space:]]*(declare)" +color brightyellow "\<(sphere|cylinder|translate|matrix|rotate|scale)\>" +color brightyellow "\<(orthographic|location|up|right|direction|clipped_by)\>" +color brightyellow "\<(fog_type|fog_offset|fog_alt|rgb|distance|transform)\>" +color brightred "^\<(texture)\>" +color brightred "\<(light_source|background)\>" +color brightred "\<(fog|object|camera)\>" +color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" +color brightmagenta "\<(union|group|subgroup)\>" +## Comment highlighting +color brightblue "//.*" +color brightblue start="/\*" end="\*/"