nano

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

elisp.nanorc (1142B)


      1 ## Syntax highlighting for Emacs Lisp.
      2 
      3 ## Original author:  Mark Oteiza
      4 
      5 syntax elisp "\.el$"
      6 magic "Lisp/Scheme program"
      7 comment ";"
      8 
      9 # Basic functions/macros
     10 color brightcyan "\<(if|when|unless|cond|and|or|lambda|let|progn|while|dolist|dotimes)\>"
     11 color brightcyan "\<save-((window-)?excursion|restriction)\>"
     12 color brightcyan "\<eval-(and|when)-compile\>"
     13 # Defining functions
     14 color brightcyan "\<def(un|macro|subst|generic|alias)\>"
     15 color brightcyan "\<cl-def(un|macro|subst|generic|struct|type)\>"
     16 color brightcyan "\<define-(derived|minor|generic)-mode\>"
     17 # Defining variables
     18 color brightcyan "\<def(class|const|var(-local|alias)?)\>"
     19 # Customization functions
     20 color brightcyan "\<def(custom|face|group|theme)\>"
     21 # Setting values
     22 color brightcyan "\<(setq(-default|-local)?|setf|push|pop|declare(-function)?)\>"
     23 # Feature functions
     24 color brightcyan "\<(require|provide)\>"
     25 # Quoted symbols
     26 color brightyellow "#?'\<(\w|-)+\>"
     27 # Booleans
     28 color brightred "\<(t|nil)\>"
     29 # Keywords
     30 color blue ":(\w|[?-])+"
     31 # Strings
     32 color yellow start="^[[:blank:]]+"" end="[^\]""
     33 color yellow ""([^"\]|\\.)*""
     34 # Comments
     35 color cyan "(^|[[:blank:]]);.*"