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
|
define("dojox/highlight/languages/apacheconf", ["dojox/main", "../_base"], function(dojox){
var dh = dojox.highlight, dhc = dh.constants;
var keywords = {
'ServerName': 1,
'ServerAlias': 1,
'ServerAdmin': 1,
'DocumentRoot': 1,
'ErrorLog': 1,
'CustomLog': 1,
'ServerSignature': 1,
'Options': 1,
'BrowserMatch': 1,
'RewriteEngine': 1,
'Require': 1,
'Include': 1,
'AllowOverride': 1,
'AuthName': 1,
'DAV': 1,
'SVNPath': 1,
'SVNAutoversioning': 1,
'ModMimeUsePathInfo': 1,
'Order': 1
}
dh.languages.apacheconf = {
// summary: Java highlight definitions
defaultMode: {
lexems: [dhc.UNDERSCORE_IDENT_RE],
illegal: '</',
contains: ['comment', 'string', 'number', 'function','block'],
keywords: keywords
},
modes: [
dhc.HASH_COMMENT_MODE,
dhc.C_BLOCK_COMMENT_MODE,
dhc.C_NUMBER_MODE,
dhc.QUOTE_STRING_MODE,
dhc.BACKSLASH_ESCAPE,
{
className: 'string',
begin: '\'',
end: '[^\\\\]\'',
illegal: '[^\\\\][^\']'
},
{
className: 'function',
begin: '\\(',
end: '\\)',
contains: ['comment', 'number', 'string', 'function', 'block'],
keywords: keywords
},
{
lexems: [dhc.UNDERSCORE_IDENT_RE],
className: 'block',
begin: '\\{',
end: '\\}',
contains: ['comment', 'string', 'number', 'function','block'],
keywords: keywords
}
]
};
return dh.languages.apacheconf;
});
|