Imported Upstream version 1.22.4
[platform/upstream/groff.git] / contrib / mom / examples / elvis_syntax
1 " Copyright (C) 2004-2018 Free Software Foundation, Inc.
2 "
3 " Copying and distribution of this file, with or without modification,
4 " are permitted in any medium without royalty provided the copyright
5 " notice and this notice are preserved.
6
7 #Mom
8 language mom
9 extension .mom .tmac
10
11 startword .
12 color startword normal
13
14 inword _.'
15 color inword normal
16
17 other initialpunct
18 mostly normal
19
20 backslash none
21
22 color args         like fixed
23 color braces       like char
24 color brackets     like underlined
25 color chars        like emphasized
26 color decimals     like number
27 color ellipsis     normal
28 color escapes      like keyword
29 color math         like cursor
30 color misc         like string
31 color operators    like string
32 color parens       like comment
33 color reg_string   like math
34 color tmac_escapes like keyword
35 color single_slash like char
36
37 font args DA DE EN ES FR IT NL NO PT SV
38 font args DEFAULT CHAPTER NAMED LETTER
39 font args TYPESET TYPEWRITE
40 font args FINAL DRAFT
41 font args BLOCK QUAD
42 font args LEFT RIGHT CENTER CENTRE JUSTIFY TOP BOTTOM L R C J
43 font args OFF QUIT END EXIT DONE NO ALL
44 font args PAGE NUMBER STAR
45 font args LETTER LEGAL EXECUTIVE LEDGER TABLOID QUARTO FOLIO
46 font args 10x14 A3 A4 A5 B4 B5
47 font args SINGLESPACE
48 font args FACTOR
49 font args DASH BULLET ALPHA DIGIT USER
50 font args RGB CYM CMYK GRAY GREY
51 font args COND CONDX EXT EXTX SUP SUPX CONDSUP CONDSUPX EXTSUP EXTSUPX
52 font args BOLDER BOLDERX SLANT SLANTX
53 font args UP DOWN BCK FWD BU BP FU FP
54 font args ROM IT BD BDI PREV
55 font args ST
56 font args SUSPEND RESUME
57
58 prefix            { \{ \{\
59 font braces       { \{ \{\
60 prefix            [ ]
61 font brackets     [ ]
62 prefix            \(bu \(co \(ct \(de \(dg \(di \(em \(en \(mu \(pl \(rg \(sc \(sq \(lq \(rq
63 font chars        \(bu \(co \(ct \(de \(dg \(di \(em \(en \(mu \(pl \(rg \(sc \(sq \(lq \(rq
64 prefix            \(14 \(12 \(34 \(+-
65 font chars        \(14 \(12 \(34 \(+-
66 prefix            \fR \fB \fI \fP \f0 \f1 \f2 \f3
67 font chars        \fR \fB \fI \fP \f0 \f1 \f2 \f3
68 prefix            .0 .1 .2 .3 .4 .5 .6 .7 .8 .9
69 font decimals     . .0 .1 .2 .3 .4 .5 .6 .7 .8 .9
70 prefix            \/ \/. \/? \/! \/, \/; \/:
71 font escapes      \/ \/. \/? \/! \/, \/; \/:
72 prefix            \, \,. \,? \,! \,, \,; \,:
73 font escapes      \, \,. \,? \,! \,, \,; \,:
74 prefix            \~ \0 \: \| \^ \& \% \!
75 font escapes      \~ \0 \: \| \^ \& \% \!
76 prefix            \b \c \C \d \D \e \f \f( \h \l \L \p \r \s \s+ \s- \S \u \v \w
77 font escapes      \b \c \C \d \D \e \f \f( \h \l \L \p \r \s \s+ \s- \S \u \v \w
78 prefix            ...
79 font ellipsis     ...
80 prefix            + - * / = == < > <= >= <? >? %
81 font math         + - * / = == < > <= >= <? >? %
82 prefix            |
83 font misc         |
84 prefix            ! : &
85 font operators    ! : &
86 prefix            ( )
87 font parens       ( )
88 prefix            # * $
89 font reg_string   # * $
90 prefix            \n \* \[
91 font single_slash \n \* \[
92 prefix            \\n \\* \\$
93 font tmac_escapes \\n \\* \\$
94
95 comment   \#
96 comment   \"