langs.sty
changeset 647 d74702cba346
parent 630 3cea57c5501f
child 680 242c1f0e60df
equal deleted inserted replaced
646:10ad874febd8 647:d74702cba346
    62   morestring=[b]",
    62   morestring=[b]",
    63   otherkeywords={=,!=,:=,<,>,\%;*,/},
    63   otherkeywords={=,!=,:=,<,>,\%;*,/},
    64 }[keywords,comments,strings]
    64 }[keywords,comments,strings]
    65 
    65 
    66 
    66 
       
    67 \lstdefinelanguage{JVMIS2}{
       
    68   morekeywords={ldc,iload,istore,ifeq,if_icmpge},
       
    69 }[keywords]
       
    70 
    67 
    71 
    68 \newcommand{\code}[1]{{\lstinline{#1}}}
    72 \newcommand{\code}[1]{{\lstinline{#1}}}
    69 \newcommand{\pcode}[1]{\mbox{\lstset{language={},keywordstyle=\color{black}}\lstinline!#1!}}
    73 \newcommand{\pcode}[1]{\mbox{\lstset{language={},keywordstyle=\color{black}}\lstinline!#1!}}
    70 \newcommand{\scode}[1]{\mbox{\lstset{language={},basicstyle=\ttfamily\color{codegreen}}\lstinline!#1!}}
    74 \newcommand{\scode}[1]{\mbox{\lstset{language={},basicstyle=\ttfamily\color{codegreen}}\lstinline!#1!}}
    71 \makeatother
    75 \makeatother