1
0
mirror of https://github.com/scopatz/nanorc synced 2024-11-13 04:34:16 +01:00
nanorc/pug.nanorc

20 lines
451 B
Plaintext
Raw Normal View History

2019-04-27 23:19:34 +02:00
syntax "Pug" "\.pug$"
# Elements
color yellow "^\s*([a-z0-9]+)"
# Main elements
color red "^\s*(html|head|body)"
# Parenthesis content
color blue "\((.*?)\)"
# Strings
color cyan "('[^']*')|(\"[^\"]*\")"
# Parenthesis, commas, equals
icolor green "\(" "\)" "\," "\="
# Comments and spaces
color blue "//.*"
color blue start="/\*" end="\*/"
color ,green "[[:space:]]+$"
# Pipes
color yellow,magenta "\|"
# Doctype
color brightblack "^\s*(doctype)(.*)"