summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/context/data/scite/scite-context-internal.properties
blob: 92806b8e22ea232518f8e0b0ed43470abb166f78 (plain)
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
# Metapost: lexer.metapost.interface.default
#
# 0 not used
# 1 metapost primitives and commands
# 2 metafun macros
#
# first lines of a metapost file are interpreted as follows:
#
# % interface=none|metapost|mp|metafun

import scite-context-data-metapost
import scite-context-data-metafun

keywordclass.metapost.all=$(keywordclass.metapost.tex) $(keywordclass.metapost.plain) $(keywordclass.metapost.primitives)
keywordclass.metafun.all=$(keywordclass.metafun.constants) $(keywordclass.metafun.helpers)

keywords.$(file.patterns.metafun)=$(keywordclass.metapost.all)
keywords2.$(file.patterns.metafun)=$(keywordclass.metapost.all) $(keywordclass.metafun.all)

lexer.metapost.interface.default=2
lexer.metapost.comment.process=0

lexer.$(file.patterns.metapost)=metapost
lexer.$(file.patterns.metafun)=metapost

# Metapost: comments

comment.block.metapost=%
comment.block.at.line.start.metapost=1

# internal lexers
#
# 0 all \commands
# 1 tex etex pdftex omega primitives
# 2 context nl (when context.properties is loaded)
# 3 context en (when context.properties is loaded)
# 4 context de (when context.properties is loaded)
# 5 context cz (when context.properties is loaded)
# 6 context it (when context.properties is loaded)
# 7 context ro (when context.properties is loaded)
# 8 latex (no keywords yet; will move up)
#
# first lines of a tex file are interpreted as follows
#
# % interface=all|nl|en|de|cz|it|ro|latex

import scite-context-data-tex
import scite-context-data-context
import scite-context-data-interfaces

word.characters.$(file.patterns.context)=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ@!?_\\

keywordclass.context.base=\
    $(keywordclass.tex.tex) \
    $(keywordclass.tex.etex) \
    $(keywordclass.tex.pdftex) \
    $(keywordclass.tex.aleph) \
    $(keywordclass.tex.omega) \
    $(keywordclass.tex.xetex) \
    $(keywordclass.context.constants) \
    $(keywordclass.context.helpers)

keywords.$(file.patterns.context)=$(keywordclass.context.base)
keywords2.$(file.patterns.context)=$(keywordclass.context.base) $(keywordclass.context.nl)
keywords3.$(file.patterns.context)=$(keywordclass.context.base) $(keywordclass.context.en)
keywords4.$(file.patterns.context)=$(keywordclass.context.base) $(keywordclass.context.de)
keywords5.$(file.patterns.context)=$(keywordclass.context.base) $(keywordclass.context.cs)
keywords6.$(file.patterns.context)=$(keywordclass.context.base) $(keywordclass.context.it)
keywords7.$(file.patterns.context)=$(keywordclass.context.base) $(keywordclass.context.ro)
keywords8.$(file.patterns.context)=$(keywordclass.context.base) $(keywordclass.context.fr)
keywords9.$(file.patterns.context)=$(keywordclass.context.base) $(keywordclass.context.pe)

comment.block.context=%
comment.block.at.line.start.context=1

lexer.context.interface.default=0
lexer.context.use.keywords=1
lexer.context.comment.process=0
lexer.context.auto.if=1

lexer.$(file.patterns.context)=tex
lexer.$(file.patterns.tex)=tex