1
0
mirror of https://github.com/scopatz/nanorc synced 2024-10-31 23:00:00 +01:00
nanorc/jade.nanorc

46 lines
1.3 KiB
Plaintext
Raw Normal View History

2019-04-28 03:44:03 +02:00
syntax "Jade" "\.jade$"
2019-04-27 23:20:08 +02:00
# Elements
color yellow "^\s*([a-z0-9]+)"
# Main elements
color red "^\s*(html|head|body)"
2019-04-28 02:15:20 +02:00
# Includes
2019-04-28 02:55:31 +02:00
icolor magenta "^\s*(include)"
# Variables
color brightblue "^\s*(\-)\s(var)\s([a-z0-9]+)"
2019-04-28 03:57:23 +02:00
icolor magenta "^\s*-\s(var)$" "^\s*-\s(var)\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"
2019-04-28 02:55:31 +02:00
# Conditionals
icolor magenta "^\s*(if|else|else if)$" "^\s*(if|else|else if)\s"
2019-04-28 04:01:57 +02:00
# For loops
icolor magenta "^\s*-\s(for)"
# Each
icolor magenta "^\s*(each)$" "^\s*(each)\s"
2019-04-27 23:20:08 +02:00
# Parenthesis content
2019-04-28 03:00:29 +02:00
color blue start="\(" end="\)"
2019-04-27 23:20:08 +02:00
# Strings
color cyan "('[^']*')|(\"[^\"]*\")"
# Parenthesis, commas, equals
icolor green "\(" "\)" "\," "\="
2019-04-28 03:57:23 +02:00
# Comments, dashes and spaces
2019-04-28 03:31:07 +02:00
color blue "\s+(//.*)"
2019-04-27 23:20:08 +02:00
color blue start="/\*" end="\*/"
2019-04-28 03:57:23 +02:00
color white "^\s*(\-)"
2019-04-27 23:20:08 +02:00
color ,green "[[:space:]]+$"
2019-04-28 03:34:56 +02:00
# Unbuffered comments
color brightblue "\s+(//-.*)"
2019-04-28 03:31:07 +02:00
# HTML-style conditional comments
2019-04-28 03:44:03 +02:00
color brightmagenta start="<!" end="!>"
color brightmagenta "<!\[endif\]-->"
2019-04-28 03:31:07 +02:00
# HTML-style elements
color yellow "<([^!].*)>"
2019-04-27 23:20:08 +02:00
# Pipes
color yellow,magenta "\|"
# Doctype
color brightblack "^\s*(doctype)(.*)"
2019-04-28 03:17:55 +02:00
# Links
icolor brightgreen "https?:\/\/(www\.)?[a-zA-Z0-9@%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)" "_blank"