langs.sty
changeset 647 180600c04da2
parent 630 9b1c15c3eb6f
child 680 eecc4d5a2172
equal deleted inserted replaced
646:2abd285c66d1 647:180600c04da2
    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