PageRenderTime 20ms CodeModel.GetById 14ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

/pack/languages/tex.properties

https://code.google.com/p/scite-ru/
Properties File | 453 lines | 314 code | 71 blank | 68 comment | 0 complexity | 26e17e611bb410d81b09f298c5d3ded9 MD5 | raw file
  1# file    : tex.properties
  2# version : 18 august 2003
  3# author  : Hans Hagen / PRAGMA ADE / www.pragma-ade.com
  4
  5# TeX users may want to use the Latin Modern Typewriter font:
  6#
  7#   font.monospace=font:LMTypewriter10,size:16.5
  8#   font.errorfont=font:LMTypewriter10,size:11.5
  9#
 10# These and more presets are done in context.properties.
 11
 12# TeX: patterns
 13
 14file.patterns.tex=*.tex;*.sty
 15file.patterns.latex=*.tex;*.sty;*.aux;*.toc;*.idx
 16file.patterns.context=*.tex;*.tui;*.tuo;*.sty
 17
 18# filter to be checked/tested:
 19
 20filter.context=TeX|$(file.patterns.tex)|
 21filter.context=LaTeX|$(file.patterns.latex)|
 22filter.context=ConTeXt|$(file.patterns.context)|
 23
 24lexer.$(file.patterns.tex)=tex
 25lexer.$(file.patterns.latex)=tex
 26lexer.$(file.patterns.context)=tex
 27
 28# TeX: commands (check process view)
 29
 30command.compile.$(file.patterns.tex)=
 31command.build.$(file.patterns.tex)=tex $(FileNameExt)
 32command.go.$(file.patterns.tex)=gv $(FileName).pdf
 33
 34command.compile.$(file.patterns.latex)=
 35command.build.$(file.patterns.latex)=pdflatex $(FileNameExt)
 36command.go.$(file.patterns.latex)=gv $(FileName).pdf
 37
 38command.compile.$(file.patterns.context)=
 39command.build.$(file.patterns.context)=texexec --pdf $(FileNameExt)
 40command.go.$(file.patterns.context)=gv $(FileName).pdf
 41
 42command.0.$(file.patterns.tex)=
 43command.1.$(file.patterns.tex)=
 44command.2.$(file.patterns.tex)=
 45command.3.$(file.patterns.tex)=
 46command.4.$(file.patterns.tex)=
 47command.5.$(file.patterns.tex)=
 48command.6.$(file.patterns.tex)=
 49command.7.$(file.patterns.tex)=
 50command.8.$(file.patterns.tex)=
 51command.9.$(file.patterns.tex)=
 52
 53command.0.$(file.patterns.latex)=
 54command.1.$(file.patterns.latex)=
 55command.2.$(file.patterns.latex)=
 56command.3.$(file.patterns.latex)=
 57command.4.$(file.patterns.latex)=
 58command.5.$(file.patterns.latex)=
 59command.6.$(file.patterns.latex)=
 60command.7.$(file.patterns.latex)=
 61command.8.$(file.patterns.latex)=
 62command.9.$(file.patterns.latex)=
 63
 64command.0.$(file.patterns.context)=
 65command.1.$(file.patterns.context)=
 66command.2.$(file.patterns.context)=
 67command.3.$(file.patterns.context)=
 68command.4.$(file.patterns.context)=
 69command.5.$(file.patterns.context)=
 70command.6.$(file.patterns.context)=
 71command.7.$(file.patterns.context)=
 72command.8.$(file.patterns.context)=
 73command.9.$(file.patterns.context)=
 74
 75# TeX: highlighting
 76
 77# Default
 78style.tex.0=fore:#3F3F3F
 79# Special
 80style.tex.1=fore:#007F7F
 81# Group
 82style.tex.2=fore:#7F0000
 83# Symbol
 84style.tex.3=fore:#7F7F00
 85# Command
 86style.tex.4=fore:#007F00
 87# Text
 88# style.tex.5=
 89
 90style.tex.34=fore:#00007F
 91style.tex.35=fore:#7F007F
 92
 93# TeX: comments
 94
 95comment.block.tex=%
 96comment.block.at.line.start.tex=1
 97
 98# TeX: lexer.tex.interface.default
 99#
100# 0 all \commands
101# 1 tex etex pdftex omega primitives
102# 2 context nl (when context.properties is loaded)
103# 3 context en (when context.properties is loaded)
104# 4 context de (when context.properties is loaded)
105# 5 context cz (when context.properties is loaded)
106# 6 context it (when context.properties is loaded)
107# 7 context ro (when context.properties is loaded)
108# 8 latex (no keywords yet; will move up)
109#
110# first lines of a tex file are interpreted as follows
111#
112# % interface=all|nl|en|de|cz|it|ro|latex
113
114lexer.tex.interface.default=0
115
116# TeX: lexer.tex.use.keywords
117#
118# 0 don't use keyword lists
119# 1 use keyword lists
120
121lexer.tex.use.keywords=1
122
123# TeX: lexer.tex.comment.process
124#
125# 0 don't interpret comment
126# 1 color comment like source code
127
128lexer.tex.comment.process=0
129
130# TeX: lexer.tex.auto.if
131#
132# 0 don't handle \if<unknown>
133# 1 treat \if<unknown> as command
134
135lexer.tex.auto.if=1
136
137# TeX: keywords (incomplete, just for testing and as example)
138
139keywordclass.primitives.tex=\
140    above abovedisplayshortskip abovedisplayskip \
141    abovewithdelims accent adjdemerits advance afterassignment \
142    aftergroup atop atopwithdelims \
143    badness baselineskip batchmode begingroup \
144    belowdisplayshortskip belowdisplayskip binoppenalty botmark \
145    box boxmaxdepth brokenpenalty \
146    catcode char chardef cleaders closein closeout clubpenalty \
147    copy count countdef cr crcr csname \
148    day deadcycles def defaulthyphenchar defaultskewchar \
149    delcode delimiter delimiterfactor delimeters \
150    delimitershortfall delimeters dimen dimendef discretionary \
151    displayindent displaylimits displaystyle \
152    displaywidowpenalty displaywidth divide \
153    doublehyphendemerits dp dump \
154    edef else emergencystretch end endcsname endgroup endinput \
155    endlinechar eqno errhelp errmessage errorcontextlines \
156    errorstopmode escapechar everycr everydisplay everyhbox \
157    everyjob everymath everypar everyvbox exhyphenpenalty \
158    expandafter  \
159    fam fi finalhyphendemerits firstmark floatingpenalty font \
160    fontdimen fontname futurelet \
161    gdef global group globaldefs \
162    halign hangafter hangindent hbadness hbox hfil horizontal \
163    hfill horizontal hfilneg hfuzz hoffset holdinginserts hrule \
164    hsize hskip hss horizontal ht hyphenation hyphenchar \
165    hyphenpenalty hyphen \
166    if ifcase ifcat ifdim ifeof iffalse ifhbox ifhmode ifinner \
167    ifmmode ifnum ifodd iftrue ifvbox ifvmode ifvoid ifx \
168    ignorespaces immediate indent input inputlineno input \
169    insert insertpenalties interlinepenalty \
170    jobname \
171    kern \
172    language lastbox lastkern lastpenalty lastskip lccode \
173    leaders left lefthyphenmin leftskip leqno let limits \
174    linepenalty line lineskip lineskiplimit long looseness \
175    lower lowercase \
176    mag mark mathaccent mathbin mathchar mathchardef mathchoice \
177    mathclose mathcode mathinner mathop mathopen mathord \
178    mathpunct mathrel mathsurround maxdeadcycles maxdepth \
179    meaning medmuskip message mkern month moveleft moveright \
180    mskip multiply muskip muskipdef \
181    newlinechar noalign noboundary noexpand noindent nolimits \
182    nonscript scriptscript nonstopmode nulldelimiterspace \
183    nullfont number \
184    omit openin openout or outer output outputpenalty over \
185    overfullrule overline overwithdelims \
186    pagedepth pagefilllstretch pagefillstretch pagefilstretch \
187    pagegoal pageshrink pagestretch pagetotal par parfillskip \
188    parindent parshape parskip patterns pausing penalty \
189    postdisplaypenalty predisplaypenalty predisplaysize \
190    pretolerance prevdepth prevgraf \
191    radical raise read relax relpenalty right righthyphenmin \
192    rightskip romannumeral \
193    scriptfont scriptscriptfont scriptscriptstyle scriptspace \
194    scriptstyle scrollmode setbox setlanguage sfcode shipout \
195    show showbox showboxbreadth showboxdepth showlists showthe \
196    skewchar skip skipdef spacefactor spaceskip span special \
197    splitbotmark splitfirstmark splitmaxdepth splittopskip \
198    string \
199    tabskip textfont textstyle the thickmuskip thinmuskip time \
200    toks toksdef tolerance topmark topskip tracingcommands \
201    tracinglostchars tracingmacros tracingonline tracingoutput \
202    tracingpages tracingparagraphs tracingrestores tracingstats \
203    uccode uchyph underline unhbox unhcopy unkern unpenalty \
204    unskip unvbox unvcopy uppercase \
205    vadjust valign vbadness vbox vcenter vfil vfill vfilneg \
206    vfuzz voffset vrule vsize vskip vsplit vss vtop \
207    wd widowpenalty write \
208    xdef xleaders xspaceskip \
209    year
210
211keywordclass.primitives.etex=\
212    beginL beginR botmarks \
213    clubpenalties currentgrouplevel currentgrouptype \
214    currentifbranch currentiflevel currentiftype \
215    detokenize dimexpr displaywidowpenalties \
216    endL endR eTeXrevision eTeXversion everyeof \
217    firstmarks fontchardp fontcharht fontcharic fontcharwd \
218    glueexpr glueshrink glueshrinkorder gluestretch \
219    gluestretchorder gluetomu \
220    ifcsname ifdefined iffontchar interactionmode \
221    interactionmode interlinepenalties \
222    lastlinefit lastnodetype \
223    marks topmarks middle muexpr mutoglue \
224    numexpr \
225    pagediscards parshapedimen parshapeindent parshapelength \
226    predisplaydirection \
227    savinghyphcodes savingvdiscards scantokens showgroups \
228    showifs showtokens splitdiscards splitfirstmarks \
229    TeXXeTstate tracingassigns tracinggroups tracingifs \
230    tracingnesting tracingscantokens \
231    unexpanded unless \
232    widowpenalties
233
234keywordclass.primitives.pdftex=\
235    pdfadjustspacing pdfannot pdfavoidoverfull \
236    pdfcatalog pdfcompresslevel \
237    pdfdecimaldigits pdfdest pdfdestmargin \
238    pdfendlink pdfendthread \
239    pdffontattr pdffontexpand pdffontname pdffontobjnum pdffontsize \
240    pdfhorigin \
241    pdfimageresolution pdfincludechars pdfinfo \
242    pdflastannot pdflastdemerits pdflastobj \
243    pdflastvbreakpenalty pdflastxform pdflastximage \
244    pdflastximagepages pdflastxpos pdflastypos \
245    pdflinesnapx pdflinesnapy pdflinkmargin pdfliteral \
246    pdfmapfile pdfmaxpenalty pdfminpenalty pdfmovechars \
247    pdfnames \
248    pdfobj pdfoptionpdfminorversion pdfoutline pdfoutput \
249    pdfpageattr pdfpageheight pdfpageresources pdfpagesattr \
250    pdfpagewidth pdfpkresolution pdfprotrudechars \
251    pdfrefobj pdfrefxform pdfrefximage \
252    pdfsavepos pdfsnaprefpoint pdfsnapx pdfsnapy pdfstartlink \
253    pdfstartthread \
254    pdftexrevision pdftexversion pdfthread pdfthreadmargin \
255    pdfuniqueresname \
256    pdfvorigin \
257    pdfxform pdfximage
258
259keywordclass.primitives.omega=\
260    odelimiter omathaccent omathchar oradical omathchardef omathcode odelcode \
261    leftghost rightghost \
262    charwd charht chardp charit \
263    localleftbox localrightbox \
264    localinterlinepenalty localbrokenpenalty \
265    pagedir bodydir pardir textdir mathdir \
266    boxdir nextfakemath \
267    pagewidth pageheight pagerightoffset pagebottomoffset \
268    nullocp nullocplist ocp externalocp ocplist pushocplist popocplist clearocplists ocptracelevel \
269    addbeforeocplist addafterocplist removebeforeocplist removeafterocplist \
270    OmegaVersion \
271    InputTranslation OutputTranslation DefaultInputTranslation DefaultOutputTranslation \
272    noInputTranslation noOutputTranslation \
273    InputMode OutputMode DefaultInputMode DefaultOutputMode \
274    noInputMode noOutputMode noDefaultInputMode noDefaultOutputMode
275
276# only the macros that make sense:
277
278keywordclass.macros.plain.partial=\
279    TeX \
280    bgroup egroup endgraf space empty null \
281    newcount newdimen newskip newmuskip newbox newtoks newhelp newread newwrite newfam newlanguage newinsert newif \
282    maxdimen magstephalf magstep \
283    frenchspacing nonfrenchspacing normalbaselines obeylines obeyspaces raggedright ttraggedright \
284    thinspace negthinspace enspace enskip quad qquad \
285    smallskip medskip bigskip removelastskip topglue vglue hglue \
286    break nobreak allowbreak filbreak goodbreak smallbreak medbreak bigbreak \
287    line leftline rightline centerline rlap llap underbar strutbox strut \
288    cases matrix pmatrix bordermatrix eqalign displaylines eqalignno leqalignno \
289    pageno folio tracingall showhyphens fmtname fmtversion \
290    hphantom vphantom phantom smash
291
292keywordclass.macros.eplain.partial=\
293    eTeX \
294    newmarks grouptype interactionmode nodetype iftype \
295    tracingall loggingall tracingnone
296
297# for fun
298
299keywordclass.primitives.pdftex.experimental=
300
301keywordclass.primitives.all=\
302    $(keywordclass.primitives.tex) \
303    $(keywordclass.primitives.etex) \
304    $(keywordclass.primitives.pdftex) \
305    $(keywordclass.primitives.pdftex.experimental) \
306    $(keywordclass.primitives.omega)
307
308# hooks for context
309
310keywordclass.macros.context.undocumented.en=
311keywordclass.macros.context.undocumented.nl=
312keywordclass.macros.context.undocumented.de=
313keywordclass.macros.context.undocumented.cz=
314keywordclass.macros.context.undocumented.it=
315keywordclass.macros.context.undocumented.ro=
316
317keywordclass.macros.context.extras=
318
319keywordclass.macros.context.nl=
320keywordclass.macros.context.en=
321keywordclass.macros.context.de=
322keywordclass.macros.context.cz=
323keywordclass.macros.context.it=
324keywordclass.macros.context.ro=
325
326import cont-en-scite
327import cont-nl-scite
328import cont-de-scite
329import cont-cz-scite
330import cont-it-scite
331import cont-ro-scite
332
333import cont-xx-scite
334
335# hooks for latex (file should define keywordclass.macros.latex.all)
336
337keywordclass.macros.latex.all=
338
339import latex-scite
340
341# collections
342
343keywordclass.tex.all=\
344    $(keywordclass.primitives.tex) \
345    $(keywordclass.macros.plain.partial)
346
347keywordclass.etex.all=\
348    $(keywordclass.primitives.tex) \
349    $(keywordclass.primitives.etex) \
350    $(keywordclass.macros.plain.partial) \
351    $(keywordclass.macros.eplain.partial)
352
353keywordclass.latex.all=\
354    $(keywordclass.primitives.tex) \
355    $(keywordclass.primitives.etex) \
356    $(keywordclass.macros.latex.all)
357
358keywordclass.pdflatex.all=\
359    $(keywordclass.primitives.tex) \
360    $(keywordclass.primitives.etex) \
361    $(keywordclass.primitives.pdftex) \
362    $(keywordclass.macros.latex.all)
363
364# we can't use $(keywordclass.primitives.all) here due to some kind of
365# limitation in nesting
366
367keywordclass.context.base=\
368    $(keywordclass.primitives.tex) \
369    $(keywordclass.primitives.etex) \
370    $(keywordclass.primitives.pdftex) \
371    $(keywordclass.primitives.pdftex.experimental) \
372    $(keywordclass.primitives.omega) \
373    $(keywordclass.macros.plain.partial) \
374    $(keywordclass.macros.eplain.partial)
375
376keywordclass.context.all=\
377    $(keywordclass.context.base) \
378    $(keywordclass.macros.context.en) \
379    $(keywordclass.macros.context.extras) \
380    $(keywordclass.macros.context.undocumented.en)
381
382keywordclass.context.all.nl=\
383    $(keywordclass.context.base) \
384    $(keywordclass.macros.context.nl) \
385    $(keywordclass.macros.context.extras) \
386    $(keywordclass.macros.context.undocumented.nl)
387
388keywordclass.context.all.en=\
389    $(keywordclass.context.base) \
390    $(keywordclass.macros.context.en) \
391    $(keywordclass.macros.context.extras) \
392    $(keywordclass.macros.context.undocumented.en)
393
394keywordclass.context.all.de=\
395    $(keywordclass.context.base) \
396    $(keywordclass.macros.context.de) \
397    $(keywordclass.macros.context.extras) \
398    $(keywordclass.macros.context.undocumented.de)
399
400keywordclass.context.all.cz=\
401    $(keywordclass.context.base) \
402    $(keywordclass.macros.context.cz) \
403    $(keywordclass.macros.context.extras) \
404    $(keywordclass.macros.context.undocumented.cz)
405
406keywordclass.context.all.it=\
407    $(keywordclass.context.base) \
408    $(keywordclass.macros.context.it) \
409    $(keywordclass.macros.context.extras) \
410    $(keywordclass.macros.context.undocumented.it)
411
412keywordclass.context.all.ro=\
413    $(keywordclass.context.base) \
414    $(keywordclass.macros.context.ro) \
415    $(keywordclass.macros.context.extras) \
416    $(keywordclass.macros.context.undocumented.ro)
417
418# hm
419
420keywords.$(file.patterns.tex)=$(keywordclass.tex.all)
421keywords.$(file.patterns.latex)=$(keywordclass.latex.all)
422keywords.$(file.patterns.context)=$(keywordclass.context.all)
423
424# keywords1 is not used since scintilla takes it from 'keywords'
425
426keywords.$(file.patterns.context)=$(keywordclass.context.base)
427
428keywords2.$(file.patterns.context)=$(keywordclass.context.all.nl)
429keywords3.$(file.patterns.context)=$(keywordclass.context.all.en)
430keywords4.$(file.patterns.context)=$(keywordclass.context.all.de)
431keywords5.$(file.patterns.context)=$(keywordclass.context.all.cz)
432keywords6.$(file.patterns.context)=$(keywordclass.context.all.it)
433keywords7.$(file.patterns.context)=$(keywordclass.context.all.ro)
434
435# keywords71.$(file.patterns.context)=$(keywordclass.tex.all)
436# keywords72.$(file.patterns.context)=$(keywordclass.etex.all)
437# keywords73.$(file.patterns.context)=$(keywordclass.pdftex.all)
438# keywords74.$(file.patterns.context)=$(keywordclass.pdfetex.all)
439#
440# keywords91.$(file.patterns.context)=$(keywordclass.latex.all)
441
442# for the moment LaTeX gets slot 8, but we will move it up as soon as
443# more keyword lists can be defined
444
445keywords8.$(file.patterns.context)=$(keywordclass.pdflatex.all)
446
447# TeX: words
448
449word.characters.$(file.patterns.tex)=$(chars.alpha)$(chars.numeric)$(chars.accented)\@
450word.characters.$(file.patterns.latex)=$(chars.alpha)$(chars.numeric)$(chars.accented)\@
451word.characters.$(file.patterns.context)=$(chars.alpha)$(chars.numeric)$(chars.accented)\@!?
452
453# TeX: end of file