nano

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

ada.nanorc (1263B)


      1 ## Syntax highlighting for Ada.
      2 
      3 ## Original author:  Andreas K. Foerster
      4 ## License:  GPL version 3 or newer
      5 
      6 ## Language reference: http://www.ada-auth.org/standards/12rm/html/RM-TTL.html
      7 
      8 syntax ada "\.ad[abcs]$"
      9 comment "--"
     10 
     11 # This linter command leaves an ALI file in the working directory.
     12 linter gcc -c -gnatc
     13 
     14 # Reserved Words (RM 2.9)
     15 icolor yellow "\<(abort|abs|abstract|accept|access|aliased|all|and|array|at)\>"
     16 icolor yellow "\<(begin|body|case|constant|declare|delay|delta|do)\>"
     17 icolor yellow "\<(else|elsif|end|entry|exception|exit|for|function|generic|goto)\>"
     18 icolor yellow "\<(if|in|interface|is|limited|loop|mod|new|not|null|of|or|others|out|overriding)\>"
     19 icolor yellow "\<(package|pragma|private|procedure|protected|raise|range|record|rem|renames)\>"
     20 icolor yellow "\<(requeue|return|reverse|select|separate|some|subtype|synchronized)\>"
     21 icolor yellow "\<(tagged|task|terminate|then|type|until|use|when|while|with|xor)\>"
     22 
     23 # Separators / Operators
     24 color magenta "'|&|\*|\+|\-|\.|\,|\/|:|;|\(|\)|<|>|\||="
     25 
     26 # Attributes
     27 color cyan "'[[:alnum:]]+"
     28 
     29 # Numbers (RM 2.4)
     30 color green "\<[0-9][0-9A-Fa-f_#.+-]*"
     31 
     32 # Characters / Strings
     33 color red "'.'|"[^"]*""
     34 
     35 # Comments
     36 color brightblue "--.*"
     37 
     38 # Trailing whitespace
     39 color ,blue "[[:space:]]+$"