mirror of
git://git.sv.gnu.org/nano.git
synced 2024-12-14 23:02:37 +03:00
6a2032f5b0
This allows for commenting or uncommenting a line or a bunch of lines with a single keystroke (default binding: M-3). The characters used for commenting/uncommenting are specified by the active syntax file. Reviewed-by: Benno Schulenberg <bensberg@justemail.net> Signed-off-by: Mike Scalora <mike@scalora.org>
19 lines
683 B
Plaintext
19 lines
683 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 "^\<(texture)\>"
|
|
color brightred "\<(light_source|background)\>"
|
|
color brightred "\<(fog|object|camera)\>"
|
|
color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
|
|
color brightmagenta "\<(union|group|subgroup)\>"
|
|
|
|
# Comments.
|
|
color brightblue "//.*"
|
|
color brightblue start="/\*" end="\*/"
|