From 944dc422ab54a633863f8ed92d1f82a181992fe5 Mon Sep 17 00:00:00 2001 From: Andrea Dejan Grande Date: Sun, 28 Apr 2019 03:17:55 +0200 Subject: [PATCH] Added links --- jade.nanorc | 4 +++- pug.nanorc | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) 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"