From c56fc9eeedc2feaa8837a02cb03778b558944929 Mon Sep 17 00:00:00 2001 From: CoffeeTableEnnui Date: Sun, 28 Aug 2016 21:39:10 -0700 Subject: [PATCH] Update tex.nanorc Fixed problem with highlighting when $$displaymode$$ is used. --- tex.nanorc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tex.nanorc b/tex.nanorc index 56aaa8b..b768ed1 100644 --- a/tex.nanorc +++ b/tex.nanorc @@ -1,7 +1,8 @@ ## Here is a short example for TeX files. ## syntax "TeX" "\.tex$" "bib" "\.bib$" "cls" "\.cls$" -color yellow "\$[^$]*\$" +color yellow "\$(\\\$|[^$])*[^\\]\$" +color yellow "\$\$(\\\$|[^$])*[^\\]\$\$" icolor green "\\.|\\[A-Z]*" color magenta "[{}]" color blue "%.*"