Skip to content

Commit

Permalink
Create pug.nanorc
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaDejanGrande committed Apr 27, 2019
1 parent 5f87def commit a0ef481
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions pug.nanorc
Original file line number Diff line number Diff line change
@@ -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)(.*)"

0 comments on commit a0ef481

Please sign in to comment.