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 "%.*"