diff options
Diffstat (limited to 'js/dojo/dojox/highlight/languages/apacheconf.js')
| -rw-r--r-- | js/dojo/dojox/highlight/languages/apacheconf.js | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/js/dojo/dojox/highlight/languages/apacheconf.js b/js/dojo/dojox/highlight/languages/apacheconf.js new file mode 100644 index 0000000..3bdf3ff --- /dev/null +++ b/js/dojo/dojox/highlight/languages/apacheconf.js @@ -0,0 +1,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; +}); + |
