From d021b7a1ee41d9835ec027a0497b228f1e9ea7e4 Mon Sep 17 00:00:00 2001
From: Christophe Garion <tofgarion@runbox.com>
Date: Thu, 29 Sep 2016 14:56:56 +0200
Subject: [PATCH] listings: use texcl=true to use LaTeX in comments

---
 my-listings.sty | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/my-listings.sty b/my-listings.sty
index d62e2c6..6292444 100644
--- a/my-listings.sty
+++ b/my-listings.sty
@@ -145,7 +145,8 @@
                   {\lstset{mathescape=true,language=ADT,#1}}
                   {}
 
-\lstset{extendedchars=true, basicstyle=\ttfamily, commentstyle=\itshape, showstringspaces=false}
+\lstset{extendedchars=true, basicstyle=\ttfamily,
+  commentstyle=\itshape, texcl=true, showstringspaces=false}
 
 \newcommand{\lstusecolors}{
 \lstset{backgroundcolor=\color{gray!10}}
-- 
GitLab