Permalink
Browse files

CARET support

git-svn-id: https://www.iam.unibe.ch/scg/svn_repos/SqueakByExample/Book@23297 54883e8d-cf1d-0410-83d6-f114b9419f37
  • Loading branch information...
1 parent c9e85e3 commit 5ece256beb343ae50e10746f98add67f31d561a5 Oscar Nierstrasz committed Dec 2, 2008
Showing with 3 additions and 0 deletions.
  1. +1 −0 common.tex
  2. +2 −0 commonDemo.tex
View
@@ -303,6 +303,7 @@
escapechar={!},
literate=
{BANG}{!}1
+ {CARET}{\^}1
{UNDERSCORE}{\_}1
{\\st}{Smalltalk}9 % convenience -- in case \st occurs in code
% {'}{{\textquotesingle}}1 % replaced by upquote=true in \lstset
View
@@ -91,6 +91,8 @@ \section*{Code environments using the listings package}
\begin{code}{}
"All handled correctly: ^ $ ' % \\ << >> _ { }"
"NB: If you !{\bf really}! want an exclamation mark you must spell it BANG"
+"
+If you really want a caret to look like this: CARET instead of this: ^, you must spell it out."
| y |
true & false not & (nil isNil) ifFalse: [self halt].
y _ self size + super size.

0 comments on commit 5ece256

Please sign in to comment.