nanorc/bat.nanorc
Rashil Gandhi 2bef849550
Add files via upload
Files forked from github.com/mitchell486/nanorc
2020-07-04 15:02:07 +05:30

27 lines
1.1 KiB
Plaintext

##
syntax "batch" "\.(bat|cmd)$"
## Major statements
icolor red "\<(call|do|else|exist|exit|for|goto|if|not|return|say|select|then|when)\>"
icolor brightcyan "\<(ansi|append|assign|assoc|attrib|at|autofail|backup|basedev|boot|break|buffers|cache|cacls|cd|chcp|chdir|chkdsk|chkntfs|cls|cmd|codepage|color|command|compact|comp|convert|copy|date|del|dir|diskcomp|diskcopy|doskey|echo|endlocal|erase|fc|find|findstr|format|ftype|graftabl|help|keyb|label|md|mkdir|mode|more|move|path|pause|popd|print|prompt|pushd|rd|recover|rename|ren|replace|restore|rmdir|run|set|setboot|setlocal|shift|sort|start|subst|time|title|trapdump|tree|type|undelete|unpack|use|verify|ver|vol|xcopy)\>"
## Comparison operators
icolor brightmagenta "\<(equ|neq|gtr|lss|geq|leq)\>"
color yellow "=="
## Comments
icolor brightblue "^[[:space:]]*(\<rem\>|::).*$"
## Quoted text
icolor brightwhite "\"[^\"]*\""
## Variables
icolor brightyellow "\%[^\%]*\%"
icolor brightyellow "\![^\!]*\!"
## Parameters that are normally %x in cmd
icolor brightred "%%."
## Trailling whitespace
color ,green "[[:space:]]+$"