mirror of
https://github.com/scopatz/nanorc.git
synced 2024-10-18 02:06:40 -07:00
Added each and for loops
This commit is contained in:
parent
c5a968e11a
commit
d64254f33d
2 changed files with 8 additions and 0 deletions
|
|
@ -15,6 +15,10 @@ icolor magenta "^\s*(case|when|default)$" "^\s*(case|when|default)\s"
|
||||||
color brightred "^\s*-\s(break)$" "^\s*-\s(break)\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"
|
||||||
|
# For loops
|
||||||
|
icolor magenta "^\s*-\s(for)"
|
||||||
|
# Each
|
||||||
|
icolor magenta "^\s*(each)$" "^\s*(each)\s"
|
||||||
# Parenthesis content
|
# Parenthesis content
|
||||||
color blue start="\(" end="\)"
|
color blue start="\(" end="\)"
|
||||||
# Strings
|
# Strings
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,10 @@ icolor magenta "^\s*(case|when|default)$" "^\s*(case|when|default)\s"
|
||||||
color brightred "^\s*-\s(break)$" "^\s*-\s(break)\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"
|
||||||
|
# For loops
|
||||||
|
icolor magenta "^\s*-\s(for)"
|
||||||
|
# Each
|
||||||
|
icolor magenta "^\s*(each)$" "^\s*(each)\s"
|
||||||
# Parenthesis content
|
# Parenthesis content
|
||||||
color blue start="\(" end="\)"
|
color blue start="\(" end="\)"
|
||||||
# Strings
|
# Strings
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue