mirror of
https://github.com/scopatz/nanorc
synced 2024-11-23 19:00:27 +01:00
Added cases
This commit is contained in:
parent
b9b9b49d4f
commit
c5a968e11a
11
jade.nanorc
11
jade.nanorc
|
@ -7,8 +7,12 @@ color red "^\s*(html|head|body)"
|
||||||
icolor magenta "^\s*(include)"
|
icolor magenta "^\s*(include)"
|
||||||
# Variables
|
# Variables
|
||||||
color brightblue "^\s*(\-)\s(var)\s([a-z0-9]+)"
|
color brightblue "^\s*(\-)\s(var)\s([a-z0-9]+)"
|
||||||
icolor magenta "^\s*(\-)\s(var)$" "^\s*(\-)\s(var)\s"
|
icolor magenta "^\s*-\s(var)$" "^\s*-\s(var)\s"
|
||||||
color white "^\s*(\-)"
|
# Cases
|
||||||
|
color brightblue "^\s*(case)\s(.*)"
|
||||||
|
color cyan "^\s*(when)\s(.*)"
|
||||||
|
icolor magenta "^\s*(case|when|default)$" "^\s*(case|when|default)\s"
|
||||||
|
color brightred "^\s*-\s(break)$" "^\s*-\s(break)\s"
|
||||||
# Conditionals
|
# Conditionals
|
||||||
icolor magenta "^\s*(if|else|else if)$" "^\s*(if|else|else if)\s"
|
icolor magenta "^\s*(if|else|else if)$" "^\s*(if|else|else if)\s"
|
||||||
# Parenthesis content
|
# Parenthesis content
|
||||||
|
@ -17,9 +21,10 @@ color blue start="\(" end="\)"
|
||||||
color cyan "('[^']*')|(\"[^\"]*\")"
|
color cyan "('[^']*')|(\"[^\"]*\")"
|
||||||
# Parenthesis, commas, equals
|
# Parenthesis, commas, equals
|
||||||
icolor green "\(" "\)" "\," "\="
|
icolor green "\(" "\)" "\," "\="
|
||||||
# Comments and spaces
|
# Comments, dashes and spaces
|
||||||
color blue "\s+(//.*)"
|
color blue "\s+(//.*)"
|
||||||
color blue start="/\*" end="\*/"
|
color blue start="/\*" end="\*/"
|
||||||
|
color white "^\s*(\-)"
|
||||||
color ,green "[[:space:]]+$"
|
color ,green "[[:space:]]+$"
|
||||||
# Unbuffered comments
|
# Unbuffered comments
|
||||||
color brightblue "\s+(//-.*)"
|
color brightblue "\s+(//-.*)"
|
||||||
|
|
11
pug.nanorc
11
pug.nanorc
|
@ -7,8 +7,12 @@ color red "^\s*(html|head|body)"
|
||||||
icolor magenta "^\s*(include)"
|
icolor magenta "^\s*(include)"
|
||||||
# Variables
|
# Variables
|
||||||
color brightblue "^\s*(\-)\s(var)\s([a-z0-9]+)"
|
color brightblue "^\s*(\-)\s(var)\s([a-z0-9]+)"
|
||||||
icolor magenta "^\s*(\-)\s(var)$" "^\s*(\-)\s(var)\s"
|
icolor magenta "^\s*-\s(var)$" "^\s*-\s(var)\s"
|
||||||
color white "^\s*(\-)"
|
# Cases
|
||||||
|
color brightblue "^\s*(case)\s(.*)"
|
||||||
|
color cyan "^\s*(when)\s(.*)"
|
||||||
|
icolor magenta "^\s*(case|when|default)$" "^\s*(case|when|default)\s"
|
||||||
|
color brightred "^\s*-\s(break)$" "^\s*-\s(break)\s"
|
||||||
# Conditionals
|
# Conditionals
|
||||||
icolor magenta "^\s*(if|else|else if)$" "^\s*(if|else|else if)\s"
|
icolor magenta "^\s*(if|else|else if)$" "^\s*(if|else|else if)\s"
|
||||||
# Parenthesis content
|
# Parenthesis content
|
||||||
|
@ -17,9 +21,10 @@ color blue start="\(" end="\)"
|
||||||
color cyan "('[^']*')|(\"[^\"]*\")"
|
color cyan "('[^']*')|(\"[^\"]*\")"
|
||||||
# Parenthesis, commas, equals
|
# Parenthesis, commas, equals
|
||||||
icolor green "\(" "\)" "\," "\="
|
icolor green "\(" "\)" "\," "\="
|
||||||
# Comments and spaces
|
# Comments, dashes and spaces
|
||||||
color blue "\s+(//.*)"
|
color blue "\s+(//.*)"
|
||||||
color blue start="/\*" end="\*/"
|
color blue start="/\*" end="\*/"
|
||||||
|
color white "^\s*(\-)"
|
||||||
color ,green "[[:space:]]+$"
|
color ,green "[[:space:]]+$"
|
||||||
# Unbuffered comments
|
# Unbuffered comments
|
||||||
color brightblue "\s+(//-.*)"
|
color brightblue "\s+(//-.*)"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user