-
Notifications
You must be signed in to change notification settings - Fork 1
/
tml_macros.lang
31 lines (27 loc) · 903 Bytes
/
tml_macros.lang
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
# %MACRO%
vardef MACRO = '%[A-Za-z][A-Za-z0-9_:]*%'
keyword = $MACRO
# $percntMACRO{\"...\"}$percnt
vardef DELAYEDMACROSTART = '\$perce?nt[A-Za-z][A-Za-z0-9_:]*\{?'
vardef DELAYEDMACROEND = '\}?\$perce?nt'
# foo=
vardef MACROATTR = '[[:word:]-]+='
# %MACRO{"..."}% or the GluePlugin syntax:
# %~~ MACRO{"...
# ~~~ }%
vardef MACROSTART = '%(~~[[:space:]]+)?[A-Za-z][A-Za-z0-9_:]*\{'
vardef MACROEND = '(^~~~[[:space:]]*)?\}%'
environment keyword delim $MACROSTART $MACROEND multiline nested begin
attribute = $MACROATTR
keyword = $MACRO
include "tml_macros1.lang"
include "tml_glue.lang"
environment string delim "\"" "\"" escape "\\" multiline begin
keyword = $MACRO
include "tml_macros1.lang"
include "tml_macrosdelayed1.lang"
include "tml_macrotokens.lang"
include "tml_macrolinks.lang"
include "tml_formatting.lang"
end
end