From 5aaa682af67257116df3afcb61834e6ca0ae1dcd Mon Sep 17 00:00:00 2001 From: Andrea Dejan Grande Date: Sun, 28 Apr 2019 03:00:29 +0200 Subject: [PATCH] Shrinked parenthesis regex --- jade.nanorc | 4 ++-- pug.nanorc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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