langs.sty
changeset 690 8d57433c7b5e
parent 680 eecc4d5a2172
child 709 c112a6cb5e52
equal deleted inserted replaced
689:d7c9ef381437 690:8d57433c7b5e
    54   morestring=[b]",
    54   morestring=[b]",
    55   morestring=[b]',
    55   morestring=[b]',
    56 }[keywords,comments,strings]
    56 }[keywords,comments,strings]
    57 
    57 
    58 \lstdefinelanguage{While}{
    58 \lstdefinelanguage{While}{
    59   morekeywords={if,then,else,while,do,true,false,write,upto,read,for,skip},
    59   morekeywords={if,then,else,while,do,true,false,write,upto,read,for,skip,new},
    60   morecomment=[l]{//},
    60   morecomment=[l]{//},
    61   morecomment=[n]{/*}{*/},
    61   morecomment=[n]{/*}{*/},
    62   morestring=[b]",
    62   morestring=[b]",
    63   otherkeywords={=,!=,:=,<,>,\%;*,/},
    63   otherkeywords={=,!=,:=,<,>,\%;*,/},
    64 }[keywords,comments,strings]
    64 }[keywords,comments,strings]