scite-context-internal.properties /size: 3110 b    last modification: 2020-07-01 14:35
1# Metapost: lexer.metapost.interface.default
2#
3# 0 not used
4# 1 metapost primitives and commands
5# 2 metafun macros
6#
7# first lines of a metapost file are interpreted as follows:
8#
9# % interface=none|metapost|mp|metafun
10
11import context/scite-context-data-metapost
12import context/scite-context-data-metafun
13
14keywordclass.metapost.all=$(keywordclass.metapost.tex) $(keywordclass.metapost.plain) $(keywordclass.metapost.primitives)
15keywordclass.metafun.all=$(keywordclass.metafun.constants) $(keywordclass.metafun.helpers)
16
17keywords.$(file.patterns.metafun)=$(keywordclass.metapost.all)
18keywords2.$(file.patterns.metafun)=$(keywordclass.metapost.all) $(keywordclass.metafun.all)
19
20lexer.metapost.interface.default=2
21lexer.metapost.comment.process=0
22
23lexer.$(file.patterns.metapost)=metapost
24lexer.$(file.patterns.metafun)=metapost
25
26# Metapost: comments
27
28comment.block.metapost=%
29comment.block.at.line.start.metapost=1
30
31# internal lexers
32#
33# 0 all \commands
34# 1 tex etex pdftex omega primitives
35# 2 context nl (when context.properties is loaded)
36# 3 context en (when context.properties is loaded)
37# 4 context de (when context.properties is loaded)
38# 5 context cz (when context.properties is loaded)
39# 6 context it (when context.properties is loaded)
40# 7 context ro (when context.properties is loaded)
41# 8 latex (no keywords yet; will move up)
42#
43# first lines of a tex file are interpreted as follows
44#
45# % interface=all|nl|en|de|cz|it|ro|latex
46
47import context/scite-context-data-tex
48import context/scite-context-data-context
49import context/scite-context-data-interfaces
50
51word.characters.$(file.patterns.context)=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ@!?_\\
52
53keywordclass.context.base=\
54    $(keywordclass.tex.tex) \
55    $(keywordclass.tex.etex) \
56    $(keywordclass.tex.pdftex) \
57    $(keywordclass.tex.aleph) \
58    $(keywordclass.tex.omega) \
59    $(keywordclass.tex.xetex) \
60    $(keywordclass.context.constants) \
61    $(keywordclass.context.helpers)
62
63keywords.$(file.patterns.context)=$(keywordclass.context.base)
64keywords2.$(file.patterns.context)=$(keywordclass.context.base) $(keywordclass.context.nl)
65keywords3.$(file.patterns.context)=$(keywordclass.context.base) $(keywordclass.context.en)
66keywords4.$(file.patterns.context)=$(keywordclass.context.base) $(keywordclass.context.de)
67keywords5.$(file.patterns.context)=$(keywordclass.context.base) $(keywordclass.context.cs)
68keywords6.$(file.patterns.context)=$(keywordclass.context.base) $(keywordclass.context.it)
69keywords7.$(file.patterns.context)=$(keywordclass.context.base) $(keywordclass.context.ro)
70keywords8.$(file.patterns.context)=$(keywordclass.context.base) $(keywordclass.context.fr)
71keywords9.$(file.patterns.context)=$(keywordclass.context.base) $(keywordclass.context.pe)
72
73comment.block.context=%
74comment.block.at.line.start.context=1
75
76lexer.context.interface.default=0
77lexer.context.use.keywords=1
78lexer.context.comment.process=0
79lexer.context.auto.if=1
80
81lexer.$(file.patterns.context)=tex
82lexer.$(file.patterns.tex)=tex
83
84lexer.$(file.patterns.example)=xml
85lexer.$(file.patterns.lua)=lua
86lexer.$(file.patterns.metafun)=metapost
87