diff options
author | Karl Berry <karl@freefriends.org> | 2018-12-20 23:33:18 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-12-20 23:33:18 +0000 |
commit | 0d829fbbe1e39d04cd4ceef43f58b0a52f4d6e03 (patch) | |
tree | 3b85f6997d4fc5978aff400e99d169a8add93e80 /Master/texmf-dist/tex/latex/lstfiracode | |
parent | abaa7495cdb0085d22d3b04bb5a1f19bdd132fd9 (diff) |
lstfiracode (20dec18)
git-svn-id: svn://tug.org/texlive/trunk@49462 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/lstfiracode')
-rw-r--r-- | Master/texmf-dist/tex/latex/lstfiracode/lstfiracode.sty | 56 |
1 files changed, 32 insertions, 24 deletions
diff --git a/Master/texmf-dist/tex/latex/lstfiracode/lstfiracode.sty b/Master/texmf-dist/tex/latex/lstfiracode/lstfiracode.sty index f1119d733a7..b8b2c132ebc 100644 --- a/Master/texmf-dist/tex/latex/lstfiracode/lstfiracode.sty +++ b/Master/texmf-dist/tex/latex/lstfiracode/lstfiracode.sty @@ -20,7 +20,7 @@ % \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{lstfiracode}[% - 2018/12/16 v0.1a LaTeX listings support for Fira Code] + 2018/12/20 v0.1b Use Fira Code font for listings] \RequirePackage{kvoptions} \RequirePackage{listings} @@ -39,10 +39,18 @@ \let\lstfiracode@verbatim@nolig@list\verbatim@nolig@list \newcommand*\ActivateVerbatimLigatures{% - \renewcommand*\verbatim@nolig@list{}% + \def\verbatim@nolig@list{\do\`\do\,\do\'}% } \newcommand*\DeactivateVerbatimLigatures{% - \renewcommand*\verbatim@nolig@list{\lstfiracode@verbatim@nolig@list}% + \expandafter\def\expandafter\verbatim@nolig@list\expandafter{% + \lstfiracode@verbatim@nolig@list + \do\w\do\*\do\/\do\:\do\=\do\!\do\~\do\[% + \do\#\do\(\do\?\do\_\do\.\do\;\do\&\do\|% + \do\+\do\$\do\@\do\%\do\]% Do "7B and "7D, how? + }% +} +\newcommand*\RestoreVerbatimBehavior{% + \let\verbatim@nolig@list\lstfiracode@verbatim@nolig@list } \iflstfiracode@verbatim @@ -64,21 +72,21 @@ {www}{{www}}3 {**}{{**}}2 {***}{{***}}3 - {**/}{{**/}}3 +% {**/}{{**/}}3 % Removed in Fira Code v1.206 {*>}{{*>}}2 -% {*/}{{*/}}2 - {\\\\}{{\textbackslash\textbackslash}}2 - {\\\\\\}{{\textbackslash\textbackslash\textbackslash}}3 -% {\{-}{{\{-}}2 - {[]}{{[]}}2 +% {*/}{{*/}}2 % Interferes with comment highlighting +% {\\\\}{{\textbackslash\textbackslash}}2 % Removed in Fira Code v1.206 +% {\\\\\\}{{\textbackslash\textbackslash\textbackslash}}3 % Removed in Fira Code v1.206 +% {\{-}{{\{-}}2 % Removed in Fira Code v1.206 +% {[]}{{[]}}2 % Removed in Fira Code v1.206 {::}{{::}}2 {:::}{{:::}}3 {:=}{{:=}}2 {!!}{{!!}}2 - {!!!}{{!!!}}3 +% {!!!}{{!!!}}3 % Removed in Fira Code v1.206 {!=}{{!=}}2 {!==}{{!==}}3 -% {-\}}{{-\}}}2 +% {-\}}{{-\}}}2 % Removed in Fira Code v1.206 {--}{{--}}2 {---}{{---}}3 {-->}{{-->}}3 @@ -103,20 +111,20 @@ {...}{{...}}3 {?=}{{?=}}2 {??}{{??}}2 - {???}{{???}}3 -% {;;}{{;;}}2 -% {;;;}{{;;;}}3 -% {/*}{{/*}}2 -% {/**}{{/**}}3 +% {???}{{???}}3 % Removed in Fira Code v1.206 +% {;;}{{;;}}2 % Interferes with comment highlighting +% {;;;}{{;;;}}3 % Removed in Fira Code v1.206 +% {/*}{{/*}}2 % Interferes with comment highlighting +% {/**}{{/**}}3 % Removed in Fira Code v1.206 {/=}{{/=}}2 {/==}{{/==}}3 {/>}{{/>}}2 -% {//}{{//}}2 -% {///}{{///}}3 +% {//}{{//}}2 % Interferes with comment highlighting +% {///}{{///}}3 % Interferes with comment highlighting {\&\&}{{\&\&}}2 - {\&\&\&}{{\&\&\&}}3 +% {\&\&\&}{{\&\&\&}}3 % Removed in Fira Code v1.206 {||}{{||}}2 - {|||}{{|||}}3 +% {|||}{{|||}}3 % Removed in Fira Code v1.206 {||=}{{||=}}3 {|=}{{|=}}2 {|>}{{|>}}2 @@ -130,9 +138,9 @@ {==>}{{==>}}3 {=>}{{=>}}2 {=>>}{{=>>}}3 - {=<}{{=<}}2 +% {=<}{{=<}}2 % Removed in Fira Code v1.206 {=<<}{{=<<}}3 - {=~}{{=\textasciitilde}}2 +% {=~}{{=\textasciitilde}}2 % Removed in Fira Code v1.206 {=/=}{{=/=}}3 {>-}{{>-}}2 {>=}{{>=}}2 @@ -171,9 +179,9 @@ {~>}{{\textasciitilde>}}2 {~~}{{\textasciitilde\textasciitilde}}2 {~~>}{{\textasciitilde\textasciitilde>}}3 - {~~~}{{\textasciitilde\textasciitilde\textasciitilde}}3 +% {~~~}{{\textasciitilde\textasciitilde\textasciitilde}}3 % Removed in Fira Code v1.206 {\%\%}{{\%\%}}2 - {\%\%\%}{{\%\%\%}}3 +% {\%\%\%}{{\%\%\%}}3 % Removed in Fira Code v1.206 {<==>}{{<==>}}4 {<||}{{<||}}3 {<|||}{{<|||}}4 |