mirror of
https://github.com/scopatz/nanorc.git
synced 2024-10-18 02:06:40 -07:00
Create pug.nanorc
This commit is contained in:
parent
5f87deffb6
commit
a0ef4815e9
1 changed files with 19 additions and 0 deletions
19
pug.nanorc
Normal file
19
pug.nanorc
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
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)(.*)"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue