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