]> git.wh0rd.org Git - nano.git/commitdiff
add POV-Ray syntax from Donnie Berkholz, with a few tweaks of mine
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Thu, 2 Nov 2006 06:21:43 +0000 (06:21 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Thu, 2 Nov 2006 06:21:43 +0000 (06:21 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3928 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
doc/nanorc.sample.in
doc/syntax/Makefile.am
doc/syntax/pov.nanorc [new file with mode: 0644]

index 3cf16802c70467175ad07c19c1012483d7ea9912..2f1d6f6ae7415f509af0433378ab986517a1d8ed 100644 (file)
--- 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:
index 70079be1aff5e420ba2ca516262ce2da42fc3b0b..95c1941fb802be22261396dfe9af40eeb514f57a 100644 (file)
 
 ## Bourne shell scripts
 # include "@PKGDATADIR@/sh.nanorc"
+
+## POV-Ray
+# include "@PKGDATADIR@/pov.nanorc"
index 96150a305f68d071cd78d955d86f3d901aceac23..bd62eed32349af6752e2af33cb577d20168d1b47 100644 (file)
@@ -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
new file mode 100644 (file)
index 0000000..298b201
--- /dev/null
@@ -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="\*/"