Changeset 8bdc9705 for doc/LaTeXmacros


Ignore:
Timestamp:
Mar 12, 2024, 6:07:32 PM (9 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
56a8eb8
Parents:
423c0cd
Message:

added lstlang entry for OCaml

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/LaTeXmacros/lstlang.sty

    r423c0cd r8bdc9705  
    88%% Created On       : Sat May 13 16:34:42 2017
    99%% Last Modified By : Peter A. Buhr
    10 %% Last Modified On : Sat Mar  9 17:03:58 2024
    11 %% Update Count     : 41
     10%% Last Modified On : Tue Mar 12 17:29:58 2024
     11%% Update Count     : 42
    1212%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    1313
     
    9999}
    100100
    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 }
     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]%
    110112
    111113% CFA programming language, based on ANSI C (with some gcc additions)
     
    135137}
    136138
     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
    137150% Local Variables: %
    138151% tab-width: 4 %
Note: See TracChangeset for help on using the changeset viewer.