diff --git a/jade.nanorc b/jade.nanorc index e918c9d..032d9fa 100644 --- a/jade.nanorc +++ b/jade.nanorc @@ -1,4 +1,4 @@ -syntax "Pug" "\.pug$" +syntax "Jade" "\.jade$" # Elements color yellow "^\s*([a-z0-9]+)" # Main elements @@ -25,3 +25,5 @@ color ,green "[[:space:]]+$" color yellow,magenta "\|" # Doctype color brightblack "^\s*(doctype)(.*)" +# Links +icolor brightgreen "https?:\/\/(www\.)?[a-zA-Z0-9@%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)" "_blank" diff --git a/pug.nanorc b/pug.nanorc index e918c9d..f450836 100644 --- a/pug.nanorc +++ b/pug.nanorc @@ -25,3 +25,5 @@ color ,green "[[:space:]]+$" color yellow,magenta "\|" # Doctype color brightblack "^\s*(doctype)(.*)" +# Links +icolor brightgreen "https?:\/\/(www\.)?[a-zA-Z0-9@%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)" "_blank"