mirror of
https://github.com/scopatz/nanorc
synced 2024-10-05 07:24:51 +02:00
34 lines
968 B
Plaintext
34 lines
968 B
Plaintext
syntax "Jade" "\.jade$"
|
|
# Elements
|
|
color yellow "^\s*([a-z0-9]+)"
|
|
# Main elements
|
|
color red "^\s*(html|head|body)"
|
|
# Includes
|
|
icolor magenta "^\s*(include)"
|
|
# Variables
|
|
color brightblue "^\s*(\-)\s(var)\s([a-z0-9]+)"
|
|
icolor magenta "^\s*(\-)\s(var)$" "^\s*(\-)\s(var)\s"
|
|
color white "^\s*(\-)"
|
|
# Conditionals
|
|
icolor magenta "^\s*(if|else|else if)$" "^\s*(if|else|else if)\s"
|
|
# Parenthesis content
|
|
color blue start="\(" end="\)"
|
|
# Strings
|
|
color cyan "('[^']*')|(\"[^\"]*\")"
|
|
# Parenthesis, commas, equals
|
|
icolor green "\(" "\)" "\," "\="
|
|
# Comments and spaces
|
|
color blue "\s+(//.*)"
|
|
color blue start="/\*" end="\*/"
|
|
color ,green "[[:space:]]+$"
|
|
# HTML-style conditional comments
|
|
color brightmagenta "<!--(.*)>"
|
|
# HTML-style elements
|
|
color yellow "<([^!].*)>"
|
|
# Pipes
|
|
color yellow,magenta "\|"
|
|
# Doctype
|
|
color brightblack "^\s*(doctype)(.*)"
|
|
# Links
|
|
icolor brightgreen "https?:\/\/(www\.)?[a-zA-Z0-9@%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)" "_blank"
|