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:
--- /dev/null
+## 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="\*/"