2020-04-20 17:15:43 +00:00
|
|
|
## Syntax highlighting for POV-Ray files.
|
2014-05-16 20:21:34 +00:00
|
|
|
|
2018-02-07 10:25:46 +00:00
|
|
|
syntax pov "\.(pov|POV|povray|POVRAY)$"
|
2016-05-25 20:13:50 +00:00
|
|
|
comment "//"
|
2014-05-16 20:21:34 +00:00
|
|
|
|
2006-11-02 06:21:43 +00:00
|
|
|
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)\>"
|
2018-01-01 14:33:18 +00:00
|
|
|
color brightred "\<(background|camera|fog|light_source|object|texture)\>"
|
2020-04-21 10:47:08 +00:00
|
|
|
color green "\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|"
|
2006-11-02 06:21:43 +00:00
|
|
|
color brightmagenta "\<(union|group|subgroup)\>"
|
2014-05-16 20:21:34 +00:00
|
|
|
|
|
|
|
# Comments.
|
2006-11-02 06:21:43 +00:00
|
|
|
color brightblue "//.*"
|
|
|
|
color brightblue start="/\*" end="\*/"
|