nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

guile.nanorc (596B)


      1 ## Syntax highlighting for Guile Scheme.
      2 
      3 ## Original author:  Mark Oteiza
      4 
      5 syntax guile "\.scm$"
      6 header "^#!.*guile"
      7 comment ";"
      8 
      9 # Basic scheme functions
     10 color green "\<(do|if|lambda|let(rec)?|map|unless|when)\>"
     11 # Defining things
     12 color brightcyan "\<define(-macro|-module|-public|-syntax)?\>"
     13 # Quoted symbols
     14 color brightyellow "'\<(\w|-)+\>"
     15 # Chars
     16 color brightmagenta "#\\(.|\w+)"
     17 # Booleans
     18 color brightred "(#t|#f)\>"
     19 # Keywords
     20 color blue "#?:(\w|[?-])+"
     21 # Strings
     22 color yellow start="^[[:blank:]]+"" end="[^\]""
     23 color yellow ""([^"\]|\\.)*""
     24 # Comments
     25 color cyan "(^|[[:blank:]]);.*"