nano

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

patch.nanorc (677B)


      1 ## Syntax highlighting for patch and diff files.
      2 
      3 ## Original author:  Mike Frysinger
      4 ## License:  GPL version 3 or newer
      5 
      6 syntax patch "\.(patch|diff|debdiff|rej)$"
      7 magic "diff output"
      8 # There is no official support for comments in patch files.
      9 comment ""
     10 
     11 # Added lines.
     12 color brightgreen "^\+.*"
     13 # Show trailing whitespace only on added lines.
     14 color ,green "[[:space:]]+$"
     15 # Context lines.
     16 color brightblue "^ .*"
     17 # Deleted lines.
     18 color brightred "^-.*"
     19 
     20 # Header lines.
     21 color magenta "^(Index:|diff)[[:blank:]].*"
     22 # File names and dates.
     23 color red "^---.*"
     24 color green "^\+\+\+.*"
     25 # Line numbers.
     26 color brightyellow "^@@.*"
     27 
     28 # Statistics.
     29 color cyan start="^---$" end="^$"