Skip to content

Commit a28e13b

Browse files
authored
Merge pull request #29 from jkuczm/handle_at_sign
Handle `@` sign
2 parents 8a80b2e + 52c2227 commit a28e13b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ on TeX Stack Exchange.
2828
## Installation
2929

3030
1. Download latest released
31-
[mmacells.sty](https://raw.githubusercontent.com/jkuczm/mmacells/v0.3.0/mmacells.sty)
31+
[mmacells.sty](https://raw.githubusercontent.com/jkuczm/mmacells/v0.3.1/mmacells.sty)
3232
file.
3333

3434
2. Put it someplace [where your TeX distribution can find it](http://tex.stackexchange.com/q/1137/70587).

mmacells.sty

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
\RequirePackage{expl3,xparse}
1515

16-
\ProvidesExplPackage {mmacells} {2016/05/20} {0.3.0}
16+
\ProvidesExplPackage {mmacells} {2016/06/26} {0.3.1}
1717
{Mathematica front end cells}
1818

1919
\RequirePackage{amsmath,bbm}
@@ -817,11 +817,12 @@
817817
\definecolor{mmaComment}{gray}{.6}
818818

819819
\lstdefinelanguage[base]{Mathematica}[5.2]{Mathematica}{
820-
alsoletter={\#}, % It's used in Slot identifier names.
820+
alsoletter={\#}, % # is used in Slot identifier names.
821+
alsoother={@}, % @ is an operator.
821822
morestring=[b]", % " inside string is escaped by backslash.
822823
morecomment=[n]{(*}{*)}, % Mathematica comments can be nested.
823824
deletekeywords=[2]$, % $ is not a keyword.
824-
morekeywords={@,_},
825+
morekeywords={_},
825826
keywordsprefix=_, % Blank... patterns with head
826827
}[keywords,comments,strings,fancyvrb]
827828
\lstdefinestyle{MathematicaFrontEnd}{

0 commit comments

Comments
 (0)