Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/LaTeXmacros/lstlang.sty

    r8bdc9705 r75d789c  
    88%% Created On       : Sat May 13 16:34:42 2017
    99%% Last Modified By : Peter A. Buhr
    10 %% Last Modified On : Tue Mar 12 17:29:58 2024
    11 %% Update Count     : 42
     10%% Last Modified On : Sat Mar  9 17:03:58 2024
     11%% Update Count     : 41
    1212%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    1313
     
    9999}
    100100
    101 \lstdefinelanguage{OCaml}%
    102         {morekeywords={
    103                 and, as, asr, assert, begin, class, constraint do, done, downto, else, end, exception, external,
    104                 false, for, fun, function, functor, if, in, include, inherit, initializer, land, lazy, let, lor, lsl, lsr, lxor,
    105                 match, method, mod, module, open, mutable, new, nonrec, object, of, open, open!, or, private, rec,
    106                 sig, struct, then, to, true, try, type, val, virtual, when, while, with
    107         },
    108    sensitive,%
    109    morecomment=[n]{(*}{*)},%
    110    morestring=[d]"%
    111 }[keywords,comments,strings]%
     101\lstdefinelanguage{pseudo}{
     102        morekeywords={string,uint,int,bool,float},
     103        sensitive=true,
     104        morecomment=[l]{//},
     105        morecomment=[s]{/*}{*/},
     106        morestring=[b]',
     107        morestring=[b]",
     108        morestring=[s]{`}{`},
     109}
    112110
    113111% CFA programming language, based on ANSI C (with some gcc additions)
     
    137135}
    138136
    139 % pseudo code
    140 \lstdefinelanguage{pseudo}{
    141         morekeywords={string,uint,int,bool,float},
    142         sensitive=true,
    143         morecomment=[l]{//},
    144         morecomment=[s]{/*}{*/},
    145         morestring=[b]',
    146         morestring=[b]",
    147         morestring=[s]{`}{`},
    148 }
    149 
    150137% Local Variables: %
    151138% tab-width: 4 %
Note: See TracChangeset for help on using the changeset viewer.