forked from scopatz/nanorc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcsv.nanorc
16 lines (15 loc) · 848 Bytes
/
csv.nanorc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
## Rainbow CSV highlighting rules for Nano (12u column coverage)
## Inspired by https://github.com/mechatroner/rainbow_csv
syntax csv "\.csv$"
color brightcyan "^(("([^"]*"")*[^"]*"){12},?)|^([^,]*,?){12}"
color brightmagenta "^(("([^"]*"")*[^"]*"){12},?)|^([^,]*,?){11}"
color brightblue "^(("([^"]*"")*[^"]*"){10},?)|^([^,]*,?){10}"
color brightyellow "^(("([^"]*"")*[^"]*"){9},?)|^([^,]*,?){9}"
color brightgreen "^(("([^"]*"")*[^"]*"){8},?)|^([^,]*,?){8}"
color brightred "^(("([^"]*"")*[^"]*"){7},?)|^([^,]*,?){7}"
color cyan "^(("([^"]*"")*[^"]*"){6},?)|^([^,]*,?){6}"
color magenta "^(("([^"]*"")*[^"]*"){5},?)|^([^,]*,?){5}"
color blue "^(("([^"]*"")*[^"]*"){4},?)|^([^,]*,?){4}"
color yellow "^(("([^"]*"")*[^"]*"){3},?)|^([^,]*,?){3}"
color green "^(("([^"]*"")*[^"]*"){2},?)|^([^,]*,?){2}"
color red "^("([^"]*"")*[^"]*",?)|^([^,]*,?)"