Skip to content

Commit

Permalink
Merge pull request scopatz#217 from DesertPunk/master
Browse files Browse the repository at this point in the history
Adding syntax highlighting for the .nmap extention.
  • Loading branch information
scopatz authored May 14, 2019
2 parents d701d5e + b7313b0 commit 205a858
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions nmap.nanorc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
syntax "NMAP" "\.nmap$"

color yellow "^Nmap scan report for.*"
color brightwhite "^Not shown.*"
color brightwhite "^Host is up.*"
color brightwhite "^All.*"

color yellow "^[0-9]+/(tcp|udp).*$"
color cyan "^[0-9]+/(tcp|udp)"

color brightgreen "(Host is )?(open|up)"
color white "\(([0-9]+\.[0-9]+s latency)\)\."
color brightyellow "filtered"
color brightred "(Host is )?(All .* scanned ports on .*)?(^Not shown: [0-9]+ )?(closed|down)( ports)?"

color magenta "^PORT *STATE *SERVICE"

color brightblue "^#.*"

0 comments on commit 205a858

Please sign in to comment.