File: lout.ssh

package info (click to toggle)
a2ps 1%3A4.14-4
  • links: PTS
  • area: main
  • in suites: buster
  • size: 13,328 kB
  • sloc: ansic: 26,966; sh: 11,844; lex: 2,286; perl: 1,156; yacc: 757; makefile: 609; lisp: 398; ada: 263; objc: 189; f90: 109; ml: 85; sql: 74; pascal: 57; modula3: 33; haskell: 32; sed: 30; java: 29; python: 24
file content (186 lines) | stat: -rw-r--r-- 7,522 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
# Style sheet for Lout
# Copyright (c) 2000 Jean-Baptiste Nivoit
# Inspired by other a2ps style sheets, most notably the TeX one.
#
# This style sheet is meant to work with Basser Lout
# document formatting system files.
# Further information about Lout is available at
# 	  <URL:http://www.spbu.ru/~uwe/lout/>
#
# It should work for Lout version 3.17 and above.
#
# This steals some stuff from lout-mode.el, an Emacs
# major-mode for editing Lout source, which is GPL'ed and
# Copyright (C) 1997-1999 Eric Marsden <emarsden@mail.dotcom.fr>
# See <URL:http://www.chez.com/emarsden/lout/>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.  If not, write to
# the Free Software Foundation, 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
#

style Lout is

written by "Jean-Baptiste Nivoit <jbnivoit@multimania.com>"
version is 1.0
requires a2ps version 4.12

documentation is
    "This is the style for Lout files."
end documentation

alphabets are
   "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_#%@"
case sensitive

keywords in Keyword are
	extend, export, def, named, left, right,
        force, into, horizontally, macro, body,
	precedence, import
end keywords

# this list of keywords comes as is from lout-mode.el
keywords in Keyword_strong are

    @Abstract, @AL, @AlignedDisplay, @AlphaList, @And, @Angle,
    @Appendix, @Arc, @Arrow, @B, @BaseOf, @Begin,
    @BeginAlignedDisplays, @BeginAppendices, @BeginSubSections,
    @BeginSubSubAppendices, @BeginSubSubSections, @BI, @BL, @Book,
    @BookLayout, @BoundaryMarks, @Box, @Break, @BulletList, @CC,
    @CD, @CDot, @Center, @CenteredDisplay, @CenteredList,
    @ChapCite, @ChapRef, @ChapRefListTitle
    @Chapter, @Char, @Circle, @Cite, @CL, @Claim, @CNP, @Color,
    @Colour, @ColumnGap, @ColumnNumber, ContentsGoesHere,
    @ContentsGap, @ContentsGapAbove, @ContentsGapBelow,
    @ContentsLeader, @ContentsLeaderGap, @ContentsRightWidth,
    @CoverSheet, @CP, @CPrint
    @Corollary, @CurveBox, @D, @DashList, @Data, @Database,
    @Date, @DefaultIndent, @Definition, @Diamond, @Display,
    @DisplayGap, @DisplayIndent, @Distance,
    @DL, @DLI, @Doc, @Document, @DocumentLayout, @DotJoin,
    @DotSep, @DP, @DropListItem
    @DropTagItem, @DTI, @El, @Ellipse, @End, @EndList,
    @EndAlignedDisplays,
    @EndAppendicies, @EndChapters, @EndNote, @EndOverheads,
    @EndProof, @EndSections, @EndSubAppendices, @EndSubSections,
    @EndSubSubAppendices, @EndSubSubSections, @Eq,
    @EvenLeftMargin, @EvenRightMargin, @Example,
    @Fig, @Figure, @FigureCaptionPos, @FigureLocation, @FigureNumbers,
    @FigurePageNumber, @FirstPageNumber, @Fmta, @Font,
    @FootMargin, @FootAboveGap, @FootGap, @FootLen, @FootNote,
    @FootNoteBreak, @FootNoteFont, @FootNoteLocation,
    @FootNoteNumbers, @FootNoteThrough, @Frame, @FullWidth
    @Graph, @GraphCircle, @GraphCross, @GraphDashed, @GraphDiamond,
    @GraphDotted, @GraphFilledCircle, @GraphFilledDiamond,
    @GraphFilledSquare, @GraphFilledTriangle, @GraphNoLine,
    @GraphPlus, @GraphSolid, @GraphSquare, @GraphTriangle,
    @HArrow, @Heading, @HeadingFont, @HLine,
    @I, @ID, @If, @IL, @Illustration,
    @Include, @IncludeGraphic, @IndentedDisplay, @IndentedList,
    @IndexBlanks, @IndexBreak, @IndexColumnGap, @IndexColumnNumber,
    @IndexFont, @InitialBreak, @InitialFont, @InitialLanguage,
    @InitialSpace, @IntroFirstPageNumber, @IntroPageNumbers,
    @Introduction, @JoinFigures, @L, @Label,
    @Language, @LD, @Lecture, @LeftDisplay, @LeftList, @LeftNote,
    @Lemma, @LI, @Line, @List, @ListItem, @LL, @LLP, @Location,
    @LP, @MajorNum, @MajorTitle, @MakeContents, @MakeIndex,
    @MakeReferences, @MarkOf, @MarkRow, @MinorNum, @MinorTitle,
    @Minute, @Multiply, @NL, @NoChapCite, @NoChapRef, @NoCite,
    @NoRef, @Not, @NP, @Null, @NumberedDisplay,
    @NumberedList, @NumberedOf, @OddLeftMargin, @OddRightMargin,
    @Or, @OrdinaryLayout, @OuterNote, @Over, @Overhead,
    @OverheadLayout, @OverheadTransparencies, @OverStrike,
    @PageBackground, @PageBoxType, @PageHeaders, @PageHeight,
    @PageNum, @PageNumbers, @PageOrientation, @PageType, @PageWidth,
    @PageMark, @PageOf, @PAL, @ParaGap, @ParaIndent,
    @ParenAlphaList, @ParenNumberedList, @ParenRomanList,
    @ParenUCAlphaList, @ParenUCRomanList, @ParSym,
    @ParNumber, @ParText, @ParTitle, @Pas, @Place, @PNL,
    @Polygon, @PP, @Preface,
    @Prev, @PRL, @Proof, @Proposition, @PUCAL, @PUCRL, @QD, @QL,
    @QuotedDisplay, @QuotedList,
    @R, @RawEndList, @RawList, @Ref, @RefPrint, @RefStyle,
    @RefCiteLabels, @RefCiteStyle, @Reference,
    @ReferencesBeforeAppendices, @RefListBreak, @RefListFont,
    @RefListFormat, @RefListGap, @RefListIndent, @RefListLabels,
    @RefListLabelWidth, @RefListRightIndent, @RefListSortKey,
    @RefListTitle, @RefNumbers, @Register, @Report, @ReportLayout,
    @Right, @RightDisplay, @RightNote, @RL, @RomanList, @Rotate,
    @Rowa, @RR, @RunningTitle, @S, @Scale, @Second, @Section,
    @SectSym, @SeparateIntoNumbering, @SetColour,
    @ShadowBox, @ShowLabels, @SL@Square, @Star, @StarList,
    @SubAppendix,
    @SubSection, @SubSubAppendix, @SubSubSection, @Sym,
    @SysDatabase, @SysInclude,
    @Tab, @Table, @TableCaptionPos,
    @TableLocation, @TableNumbers, @Tag, @TaggedList,
    @TagItem, @Theorem,
    @TI, @Time, @Title, @TitlePageFont, @TL, @TopMargin,
    @True, @Type, @UCAL,
    @UCAlphaList, @UCRL, @UCRomanList,
    @Underline, @Use, @VArrow, @Verbatim, @VeryWideTaggedList,
    @VLine, @VShift,
    @VWTL, @Wide,
    @WideTaggedList, @WTL,
    @XDistance, @YDistance,

    @Bullet, @ParSym, @Dagger, @CDot, @Yen, @Degree,
    @Second, @Multiply, @CopyRight, @TradeMark, @Start,
    @SectSym, @DaggerDbl, @Sterling, @Florin, @Minute,
    @Lozenge, @Divide, @Register,

    @B, @I, @BI, @R, @F, @S,

    @Chapter, @Section, @SubSection, @Abstract, @BeginSections,
    @EndSections, @BeginSubSections, @EndSubSections, @Appendix,
    @BeginSubAppendices, @EndSubAppendices, @SubAppendix, @Preface

end keywords

#(defconst lout-font-lock-keywords
#  (list
#
#     1 font-lock-function-name-face)
#   '("@\\(Begin\\)[ ]+\\([a-zA-Z]+\\)"
#     (1 font-lock-keyword-face) (2 font-lock-function-name-face))
#   '("@\\([a-zA-Z]+\\)" 1 font-lock-keyword-face)
#   '("{||?\\|//?}{[0-9]+[cipmfsvx]}?" . font-lock-type-face)
#   '("@B[ ]+{\\([^}]*\\)}" 1 'bold keep)
#   '("@B[ ]+\\(\\w+\\)" 1 'bold keep)
#   '("@I[ ]+{\\([^}]*\\)" 1 'italic keep)
#   '("@I[ ]+\\(\\w+\\)" 1 'italic keep)
#   '("@BI[ ]+{\\([^}]*\\)}" 1 'bold-italic keep)
#   '("@BI[ ]+\\(\\w+\\)" 1 'bold-italic keep)
#   '("@Title +{\\([^}]*\\)}" 1 'bold keep)
#   '("def\||macro" . font-lock-function-name-face))
#  "Additional expressions to highlight in Lout mode.")

operators are
#  (/def[\t ]*(\\@[a-zA-Z0-9_]+)/ \1 Keyword_strong)
  (/(\\@[a-zA-Z0-9_]+)/ \1 Keyword_strong),

	"//",
	"/",
	"^/",
	"&",
	"^|",
	"|"
end operators

sequences are
    "#"                     Comment,
    C-string
end sequences

end style