1 <?xml version="1.0"?>
\r
3 <!DOCTYPE MODE SYSTEM "xmode.dtd">
\r
6 <MODE NAME="myghty" FILE="myghty.xml"
\r
7 FILE_NAME_GLOB="*.myt"/>
\r
12 <PROPERTY NAME="commentStart" VALUE="<!--" />
\r
13 <PROPERTY NAME="commentEnd" VALUE="-->" />
\r
15 <RULES IGNORE_CASE="TRUE">
\r
17 <EOL_SPAN TYPE="COMMENT2" AT_LINE_START="TRUE">#</EOL_SPAN>
\r
18 <!-- <SEQ TYPE="LITERAL4" AT_LINE_END="TRUE">\</SEQ> -->
\r
20 <!-- attr block (python) -->
\r
21 <SPAN DELEGATE="MYGHTY" TYPE="LITERAL4">
\r
22 <BEGIN><%attr></BEGIN>
\r
23 <END></%attr></END>
\r
26 <!-- def, closure, method -->
\r
27 <SPAN_REGEXP HASH_CHAR="<%" TYPE="LITERAL4" DELEGATE="DEF">
\r
28 <BEGIN><%(def|closure|method)</BEGIN>
\r
31 <SEQ_REGEXP HASH_CHAR="</%" TYPE="LITERAL4"></%(def|closure|method)></SEQ_REGEXP>
\r
34 <SPAN TYPE="COMMENT4">
\r
35 <BEGIN><%doc></BEGIN>
\r
36 <END></%doc></END>
\r
39 <!-- flags block (python) -->
\r
40 <SPAN DELEGATE="MYGHTY" TYPE="LITERAL4">
\r
41 <BEGIN><%flags></BEGIN>
\r
42 <END></%flags></END>
\r
45 <!-- python block -->
\r
46 <SPAN_REGEXP HASH_CHAR="<%python" DELEGATE="MYGHTY" TYPE="LITERAL4">
\r
47 <BEGIN><%python[^>]*></BEGIN>
\r
48 <END></%python></END>
\r
51 <!-- python block aliases - don't take args -->
\r
52 <SPAN_REGEXP HASH_CHAR="<%" DELEGATE="MYGHTY" TYPE="LITERAL4">
\r
53 <BEGIN><%(args|cleanup|filter|global|init|once|requestlocal|requestonce|shared|threadlocal|threadonce)></BEGIN>
\r
54 <END></%$1></END>
\r
58 <SPAN TYPE="LITERAL3">
\r
59 <BEGIN><%text></BEGIN>
\r
60 <END></%text></END>
\r
63 <!-- calling component -->
\r
64 <SEQ TYPE="LITERAL4"></&></SEQ>
\r
65 <SPAN_REGEXP HASH_CHAR="<&" TYPE="LITERAL4" DELEGATE="MYGHTY">
\r
66 <BEGIN><&[|]?</BEGIN>
\r
67 <END>&></END>
\r
70 <!-- substitutions -->
\r
71 <SPAN TYPE="LITERAL3" DELEGATE="MYGHTY">
\r
72 <BEGIN><%</BEGIN>
\r
77 AT_LINE_START="TRUE"
\r
79 TYPE="LITERAL4">%</EOL_SPAN>
\r
81 <IMPORT DELEGATE="html::MAIN"/>
\r
84 <!-- only here for complete-word -->
\r
87 <NULL>cleanup</NULL>
\r
88 <NULL>closure</NULL>
\r
98 <NULL>requestlocal</NULL>
\r
99 <NULL>requestonce</NULL>
\r
100 <NULL>shared</NULL>
\r
101 <NULL>threadlocal</NULL>
\r
102 <NULL>threadonce</NULL>
\r
107 <RULES IGNORE_CASE="FALSE" SET="MYGHTY">
\r
108 <!-- alias for MODULE -->
\r
109 <SEQ TYPE="KEYWORD4">@</SEQ>
\r
110 <IMPORT DELEGATE="python::MAIN"/>
\r
112 <KEYWORD4>ARGS</KEYWORD4>
\r
113 <KEYWORD4>MODULE</KEYWORD4>
\r
114 <KEYWORD4>SELF</KEYWORD4>
\r
115 <KEYWORD4>m</KEYWORD4>
\r
117 <KEYWORD4>r</KEYWORD4>
\r
119 <KEYWORD4>s</KEYWORD4>
\r
120 <!-- URL encode -->
\r
121 <KEYWORD4>u</KEYWORD4>
\r
122 <!-- HTML encode -->
\r
123 <KEYWORD4>h</KEYWORD4>
\r
127 <!-- only exists to color component name like a function -->
\r
128 <RULES IGNORE_CASE="TRUE" SET="DEF" DEFAULT="FUNCTION">
\r