1" Steve Kirkendall has thoughtfully reworked elvis's syntax 2" highlighting so that it now supports nroff constructs like \fBword 3" and \(emword, with \fB and \(em being highlighted while "word" is 4" not. 5" 6" There are some other enhancements as well, making it possible 7" to have any word beginning with punctuation (i.e. groff 8" requests) highlighted. I've decided to take advantage of these 9" improvements, which apply to elvis-2.2h onwards, and write a new 10" simplified set of syntax highlighting rules for mom. Just plug 11" this file at the end of /etc/elvis/elvis.syn to use them. 12" 13" If you're using an older version of elvis, stick with the 14" highlighting rules in the files elvis_syntax. 15 16#Mom 17language mom 18extension .mom .tmac 19 20startword . 21color startword normal 22 23inword _.' 24color inword normal 25 26other initialpunct 27mostly normal 28 29backslash none 30 31color args like fixed 32color braces like char 33color brackets like underlined 34color chars like emphasized 35color decimals normal 36color ellipsis normal 37color escapes like keyword 38color math like cursor 39color misc like string 40color operators like string 41color parens like comment 42color reg_string like math 43color tmac_escapes like keyword 44color single_slash like char 45 46font args DA DE EN ES FR IT NL NO PT SV 47font args DEFAULT CHAPTER NAMED LETTER 48font args TYPESET TYPEWRITE 49font args FINAL DRAFT 50font args BLOCK QUAD 51font args LEFT RIGHT CENTER CENTRE JUSTIFY TOP BOTTOM L R C J 52font args OFF QUIT END EXIT DONE NO ALL 53font args PAGE NUMBER STAR LINE 54font args LETTER LEGAL EXECUTIVE LEDGER TABLOID QUARTO FOLIO 55font args 10x14 A3 A4 A5 B4 B5 56font args SINGLESPACE 57font args FACTOR 58font args DASH BULLET ALPHA DIGIT USER ROMAN roman alpha 59font args SUSPEND RESUME 60font args RGB CYM CMYK GRAY GREY 61font args COND CONDX EXT EXTX SUP SUPX CONDSUP CONDSUPX EXTSUP EXTSUPX 62font args BOLDER BOLDERX SLANT SLANTX 63font args UP DOWN BCK FWD BU BP FU FP FN_MARK EN_MARK 64font args ROM IT BD BDI PREV 65font args ST 66 67prefix { \{ \} \{\ } 68font braces { \{ \} \{\ } 69prefix [ ] 70font brackets [ ] 71prefix \(bu \(co \(ct \(de \(dg \(di \(em \(en \(mu \(pl \(rg \(sc \(sq \(lq \(rq 72font chars \(bu \(co \(ct \(de \(dg \(di \(em \(en \(mu \(pl \(rg \(sc \(sq \(lq \(rq 73prefix \(14 \(12 \(34 \(+- 74font chars \(14 \(12 \(34 \(+- 75prefix \fR \fB \fI \fP \f0 \f1 \f2 \f3 76font chars \fR \fB \fI \fP \f0 \f1 \f2 \f3 77prefix .0 .1 .2 .3 .4 .5 .6 .7 .8 .9 78font decimals . .0 .1 .2 .3 .4 .5 .6 .7 .8 .9 79prefix \/ \/. \/? \/! \/, \/; \/: 80font escapes \/ \/. \/? \/! \/, \/; \/: 81prefix \, \,. \,? \,! \,, \,; \,: 82font escapes \, \,. \,? \,! \,, \,; \,: 83prefix \~ \0 \: \| \^ \& \% \! 84font escapes \~ \0 \: \| \^ \& \% \! 85prefix \b \c \C \d \D \e \f \f( \h \l \L \p \r \s \s+ \s- \S \u \v \w 86font escapes \b \c \C \d \D \e \f \f( \h \l \L \p \r \s \s+ \s- \S \u \v \w 87prefix ... 88font ellipsis ... 89prefix + - * / = == < > <= >= <? >? % 90font math + - * / = == < > <= >= <? >? % 91prefix | 92font misc | 93prefix ! : & 94font operators ! : & 95prefix ( ) 96font parens ( ) 97prefix # * $ 98font reg_string # * $ 99prefix \n \* 100font single_slash \n \* 101prefix \\n \\* \\$ 102font tmac_escapes \\n \\* \\$ 103 104character \]' 105comment \# 106comment \" 107