From 7cdb97e13f4a35c483bae6a3f447d3eb4158972f Mon Sep 17 00:00:00 2001 From: Lars Willighagen Date: Fri, 3 Aug 2018 16:48:02 +0200 Subject: [PATCH] RegExp literal support Close #6 --- jslistings.sty | 1 + 1 file changed, 1 insertion(+) diff --git a/jslistings.sty b/jslistings.sty index 0408c33..dd7e4a8 100644 --- a/jslistings.sty +++ b/jslistings.sty @@ -43,6 +43,7 @@ morestring=[b]", morestring=[d]', morestring=[s][\color{string}\ttfamily]{`}{`}, + morestring=[b][\color{orange}]/, % regex literal, so technically not a string commentstyle=\color{red}\itshape, morecomment=[l][\color{allcomment}]{//}, morecomment=[s][\color{allcomment}]{/*}{*/},