diff --git a/jade.nanorc b/jade.nanorc index 8f68d4d..e918c9d 100644 --- a/jade.nanorc +++ b/jade.nanorc @@ -1,4 +1,4 @@ -syntax "Jade" "\.jade$" +syntax "Pug" "\.pug$" # Elements color yellow "^\s*([a-z0-9]+)" # Main elements @@ -12,7 +12,7 @@ color white "^\s*(\-)" # Conditionals icolor magenta "^\s*(if|else|else if)$" "^\s*(if|else|else if)\s" # Parenthesis content -color blue "\((.*?)\)" +color blue start="\(" end="\)" # Strings color cyan "('[^']*')|(\"[^\"]*\")" # Parenthesis, commas, equals diff --git a/pug.nanorc b/pug.nanorc index be85d9d..e918c9d 100644 --- a/pug.nanorc +++ b/pug.nanorc @@ -12,7 +12,7 @@ color white "^\s*(\-)" # Conditionals icolor magenta "^\s*(if|else|else if)$" "^\s*(if|else|else if)\s" # Parenthesis content -color blue "\((.*?)\)" +color blue start="\(" end="\)" # Strings color cyan "('[^']*')|(\"[^\"]*\")" # Parenthesis, commas, equals