mirror of
git://git.sv.gnu.org/nano.git
synced 2025-02-19 23:04:32 +03:00

The different color will make the name stand out, as it should, instead of looking the same as all the regex strings.
17 lines
632 B
Plaintext
17 lines
632 B
Plaintext
## Here is an example for POV-Ray.
|
|
|
|
syntax pov "\.(pov|POV|povray|POVRAY)$"
|
|
comment "//"
|
|
|
|
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 "\<(background|camera|fog|light_source|object|texture)\>"
|
|
color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
|
|
color brightmagenta "\<(union|group|subgroup)\>"
|
|
|
|
# Comments.
|
|
color brightblue "//.*"
|
|
color brightblue start="/\*" end="\*/"
|