From 966e51f3635d71363caf6eede27b866d5cf2b4b6 Mon Sep 17 00:00:00 2001 From: Andrea Dejan Grande Date: Sun, 28 Apr 2019 02:55:31 +0200 Subject: [PATCH] Added conditionals --- jade.nanorc | 8 +++++++- pug.nanorc | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/jade.nanorc b/jade.nanorc index 9d38cae..8f68d4d 100644 --- a/jade.nanorc +++ b/jade.nanorc @@ -4,7 +4,13 @@ color yellow "^\s*([a-z0-9]+)" # Main elements color red "^\s*(html|head|body)" # Includes -color magenta "^\s*(include)" +icolor magenta "^\s*(include)" +# Variables +color brightblue "^\s*(\-)\s(var)\s([a-z0-9]+)" +icolor magenta "^\s*(\-)\s(var)$" "^\s*(\-)\s(var)\s" +color white "^\s*(\-)" +# Conditionals +icolor magenta "^\s*(if|else|else if)$" "^\s*(if|else|else if)\s" # Parenthesis content color blue "\((.*?)\)" # Strings diff --git a/pug.nanorc b/pug.nanorc index 745b8c5..be85d9d 100644 --- a/pug.nanorc +++ b/pug.nanorc @@ -4,7 +4,13 @@ color yellow "^\s*([a-z0-9]+)" # Main elements color red "^\s*(html|head|body)" # Includes -color magenta "^\s*(include)" +icolor magenta "^\s*(include)" +# Variables +color brightblue "^\s*(\-)\s(var)\s([a-z0-9]+)" +icolor magenta "^\s*(\-)\s(var)$" "^\s*(\-)\s(var)\s" +color white "^\s*(\-)" +# Conditionals +icolor magenta "^\s*(if|else|else if)$" "^\s*(if|else|else if)\s" # Parenthesis content color blue "\((.*?)\)" # Strings