-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbat.nanorc
More file actions
26 lines (19 loc) · 1.06 KB
/
bat.nanorc
File metadata and controls
26 lines (19 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
##
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:]]+$"