mode-apache_conf.js 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  1. ace.define("ace/mode/apache_conf_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
  2. "use strict";
  3. var oop = require("../lib/oop");
  4. var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
  5. var ApacheConfHighlightRules = function() {
  6. this.$rules = { start:
  7. [ { token:
  8. [ 'punctuation.definition.comment.apacheconf',
  9. 'comment.line.hash.ini',
  10. 'comment.line.hash.ini' ],
  11. regex: '^((?:\\s)*)(#)(.*$)' },
  12. { token:
  13. [ 'punctuation.definition.tag.apacheconf',
  14. 'entity.tag.apacheconf',
  15. 'text',
  16. 'string.value.apacheconf',
  17. 'punctuation.definition.tag.apacheconf' ],
  18. regex: '(<)(Proxy|ProxyMatch|IfVersion|Directory|DirectoryMatch|Files|FilesMatch|IfDefine|IfModule|Limit|LimitExcept|Location|LocationMatch|VirtualHost)(?:(\\s)(.+?))?(>)' },
  19. { token:
  20. [ 'punctuation.definition.tag.apacheconf',
  21. 'entity.tag.apacheconf',
  22. 'punctuation.definition.tag.apacheconf' ],
  23. regex: '(</)(Proxy|ProxyMatch|IfVersion|Directory|DirectoryMatch|Files|FilesMatch|IfDefine|IfModule|Limit|LimitExcept|Location|LocationMatch|VirtualHost)(>)' },
  24. { token:
  25. [ 'keyword.alias.apacheconf', 'text',
  26. 'string.regexp.apacheconf', 'text',
  27. 'string.replacement.apacheconf', 'text' ],
  28. regex: '(Rewrite(?:Rule|Cond))(\\s+)(.+?)(\\s+)(.+?)($|\\s)' },
  29. { token:
  30. [ 'keyword.alias.apacheconf', 'text',
  31. 'entity.status.apacheconf', 'text',
  32. 'string.regexp.apacheconf', 'text',
  33. 'string.path.apacheconf', 'text' ],
  34. regex: '(RedirectMatch)(?:(\\s+)(\\d\\d\\d|permanent|temp|seeother|gone))?(\\s+)(.+?)(\\s+)(?:(.+?)($|\\s))?' },
  35. { token:
  36. [ 'keyword.alias.apacheconf', 'text',
  37. 'entity.status.apacheconf', 'text',
  38. 'string.path.apacheconf', 'text',
  39. 'string.path.apacheconf', 'text' ],
  40. regex: '(Redirect)(?:(\\s+)(\\d\\d\\d|permanent|temp|seeother|gone))?(\\s+)(.+?)(\\s+)(?:(.+?)($|\\s))?' },
  41. { token:
  42. [ 'keyword.alias.apacheconf', 'text',
  43. 'string.regexp.apacheconf', 'text',
  44. 'string.path.apacheconf', 'text' ],
  45. regex: '(ScriptAliasMatch|AliasMatch)(\\s+)(.+?)(\\s+)(?:(.+?)(\\s))?' },
  46. { token:
  47. [ 'keyword.alias.apacheconf', 'text',
  48. 'string.path.apacheconf', 'text',
  49. 'string.path.apacheconf', 'text' ],
  50. regex: '(RedirectPermanent|RedirectTemp|ScriptAlias|Alias)(\\s+)(.+?)(\\s+)(?:(.+?)($|\\s))?' },
  51. { token: 'keyword.core.apacheconf',
  52. regex: '\\b(?:AcceptPathInfo|AccessFileName|AddDefaultCharset|AddOutputFilterByType|AllowEncodedSlashes|AllowOverride|AuthName|AuthType|CGIMapExtension|ContentDigest|DefaultType|DocumentRoot|EnableMMAP|EnableSendfile|ErrorDocument|ErrorLog|FileETag|ForceType|HostnameLookups|IdentityCheck|Include|KeepAlive|KeepAliveTimeout|LimitInternalRecursion|LimitRequestBody|LimitRequestFields|LimitRequestFieldSize|LimitRequestLine|LimitXMLRequestBody|LogLevel|MaxKeepAliveRequests|NameVirtualHost|Options|Require|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScriptInterpreterSource|ServerAdmin|ServerAlias|ServerName|ServerPath|ServerRoot|ServerSignature|ServerTokens|SetHandler|SetInputFilter|SetOutputFilter|TimeOut|TraceEnable|UseCanonicalName)\\b' },
  53. { token: 'keyword.mpm.apacheconf',
  54. regex: '\\b(?:AcceptMutex|AssignUserID|BS2000Account|ChildPerUserID|CoreDumpDirectory|EnableExceptionHook|Group|Listen|ListenBacklog|LockFile|MaxClients|MaxMemFree|MaxRequestsPerChild|MaxRequestsPerThread|MaxSpareServers|MaxSpareThreads|MaxThreads|MaxThreadsPerChild|MinSpareServers|MinSpareThreads|NumServers|PidFile|ReceiveBufferSize|ScoreBoardFile|SendBufferSize|ServerLimit|StartServers|StartThreads|ThreadLimit|ThreadsPerChild|ThreadStackSize|User|Win32DisableAcceptEx)\\b' },
  55. { token: 'keyword.access.apacheconf',
  56. regex: '\\b(?:Allow|Deny|Order)\\b' },
  57. { token: 'keyword.actions.apacheconf',
  58. regex: '\\b(?:Action|Script)\\b' },
  59. { token: 'keyword.alias.apacheconf',
  60. regex: '\\b(?:Alias|AliasMatch|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ScriptAlias|ScriptAliasMatch)\\b' },
  61. { token: 'keyword.auth.apacheconf',
  62. regex: '\\b(?:AuthAuthoritative|AuthGroupFile|AuthUserFile)\\b' },
  63. { token: 'keyword.auth_anon.apacheconf',
  64. regex: '\\b(?:Anonymous|Anonymous_Authoritative|Anonymous_LogEmail|Anonymous_MustGiveEmail|Anonymous_NoUserID|Anonymous_VerifyEmail)\\b' },
  65. { token: 'keyword.auth_dbm.apacheconf',
  66. regex: '\\b(?:AuthDBMAuthoritative|AuthDBMGroupFile|AuthDBMType|AuthDBMUserFile)\\b' },
  67. { token: 'keyword.auth_digest.apacheconf',
  68. regex: '\\b(?:AuthDigestAlgorithm|AuthDigestDomain|AuthDigestFile|AuthDigestGroupFile|AuthDigestNcCheck|AuthDigestNonceFormat|AuthDigestNonceLifetime|AuthDigestQop|AuthDigestShmemSize)\\b' },
  69. { token: 'keyword.auth_ldap.apacheconf',
  70. regex: '\\b(?:AuthLDAPAuthoritative|AuthLDAPBindDN|AuthLDAPBindPassword|AuthLDAPCharsetConfig|AuthLDAPCompareDNOnServer|AuthLDAPDereferenceAliases|AuthLDAPEnabled|AuthLDAPFrontPageHack|AuthLDAPGroupAttribute|AuthLDAPGroupAttributeIsDN|AuthLDAPRemoteUserIsDN|AuthLDAPUrl)\\b' },
  71. { token: 'keyword.autoindex.apacheconf',
  72. regex: '\\b(?:AddAlt|AddAltByEncoding|AddAltByType|AddDescription|AddIcon|AddIconByEncoding|AddIconByType|DefaultIcon|HeaderName|IndexIgnore|IndexOptions|IndexOrderDefault|ReadmeName)\\b' },
  73. { token: 'keyword.cache.apacheconf',
  74. regex: '\\b(?:CacheDefaultExpire|CacheDisable|CacheEnable|CacheForceCompletion|CacheIgnoreCacheControl|CacheIgnoreHeaders|CacheIgnoreNoLastMod|CacheLastModifiedFactor|CacheMaxExpire)\\b' },
  75. { token: 'keyword.cern_meta.apacheconf',
  76. regex: '\\b(?:MetaDir|MetaFiles|MetaSuffix)\\b' },
  77. { token: 'keyword.cgi.apacheconf',
  78. regex: '\\b(?:ScriptLog|ScriptLogBuffer|ScriptLogLength)\\b' },
  79. { token: 'keyword.cgid.apacheconf',
  80. regex: '\\b(?:ScriptLog|ScriptLogBuffer|ScriptLogLength|ScriptSock)\\b' },
  81. { token: 'keyword.charset_lite.apacheconf',
  82. regex: '\\b(?:CharsetDefault|CharsetOptions|CharsetSourceEnc)\\b' },
  83. { token: 'keyword.dav.apacheconf',
  84. regex: '\\b(?:Dav|DavDepthInfinity|DavMinTimeout|DavLockDB)\\b' },
  85. { token: 'keyword.deflate.apacheconf',
  86. regex: '\\b(?:DeflateBufferSize|DeflateCompressionLevel|DeflateFilterNote|DeflateMemLevel|DeflateWindowSize)\\b' },
  87. { token: 'keyword.dir.apacheconf',
  88. regex: '\\b(?:DirectoryIndex|DirectorySlash)\\b' },
  89. { token: 'keyword.disk_cache.apacheconf',
  90. regex: '\\b(?:CacheDirLength|CacheDirLevels|CacheExpiryCheck|CacheGcClean|CacheGcDaily|CacheGcInterval|CacheGcMemUsage|CacheGcUnused|CacheMaxFileSize|CacheMinFileSize|CacheRoot|CacheSize|CacheTimeMargin)\\b' },
  91. { token: 'keyword.dumpio.apacheconf',
  92. regex: '\\b(?:DumpIOInput|DumpIOOutput)\\b' },
  93. { token: 'keyword.env.apacheconf',
  94. regex: '\\b(?:PassEnv|SetEnv|UnsetEnv)\\b' },
  95. { token: 'keyword.expires.apacheconf',
  96. regex: '\\b(?:ExpiresActive|ExpiresByType|ExpiresDefault)\\b' },
  97. { token: 'keyword.ext_filter.apacheconf',
  98. regex: '\\b(?:ExtFilterDefine|ExtFilterOptions)\\b' },
  99. { token: 'keyword.file_cache.apacheconf',
  100. regex: '\\b(?:CacheFile|MMapFile)\\b' },
  101. { token: 'keyword.headers.apacheconf',
  102. regex: '\\b(?:Header|RequestHeader)\\b' },
  103. { token: 'keyword.imap.apacheconf',
  104. regex: '\\b(?:ImapBase|ImapDefault|ImapMenu)\\b' },
  105. { token: 'keyword.include.apacheconf',
  106. regex: '\\b(?:SSIEndTag|SSIErrorMsg|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|XBitHack)\\b' },
  107. { token: 'keyword.isapi.apacheconf',
  108. regex: '\\b(?:ISAPIAppendLogToErrors|ISAPIAppendLogToQuery|ISAPICacheFile|ISAPIFakeAsync|ISAPILogNotSupported|ISAPIReadAheadBuffer)\\b' },
  109. { token: 'keyword.ldap.apacheconf',
  110. regex: '\\b(?:LDAPCacheEntries|LDAPCacheTTL|LDAPConnectionTimeout|LDAPOpCacheEntries|LDAPOpCacheTTL|LDAPSharedCacheFile|LDAPSharedCacheSize|LDAPTrustedCA|LDAPTrustedCAType)\\b' },
  111. { token: 'keyword.log.apacheconf',
  112. regex: '\\b(?:BufferedLogs|CookieLog|CustomLog|LogFormat|TransferLog|ForensicLog)\\b' },
  113. { token: 'keyword.mem_cache.apacheconf',
  114. regex: '\\b(?:MCacheMaxObjectCount|MCacheMaxObjectSize|MCacheMaxStreamingBuffer|MCacheMinObjectSize|MCacheRemovalAlgorithm|MCacheSize)\\b' },
  115. { token: 'keyword.mime.apacheconf',
  116. regex: '\\b(?:AddCharset|AddEncoding|AddHandler|AddInputFilter|AddLanguage|AddOutputFilter|AddType|DefaultLanguage|ModMimeUsePathInfo|MultiviewsMatch|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|TypesConfig)\\b' },
  117. { token: 'keyword.misc.apacheconf',
  118. regex: '\\b(?:ProtocolEcho|Example|AddModuleInfo|MimeMagicFile|CheckSpelling|ExtendedStatus|SuexecUserGroup|UserDir)\\b' },
  119. { token: 'keyword.negotiation.apacheconf',
  120. regex: '\\b(?:CacheNegotiatedDocs|ForceLanguagePriority|LanguagePriority)\\b' },
  121. { token: 'keyword.nw_ssl.apacheconf',
  122. regex: '\\b(?:NWSSLTrustedCerts|NWSSLUpgradeable|SecureListen)\\b' },
  123. { token: 'keyword.proxy.apacheconf',
  124. regex: '\\b(?:AllowCONNECT|NoProxy|ProxyBadHeader|ProxyBlock|ProxyDomain|ProxyErrorOverride|ProxyFtpDirCharset|ProxyIOBufferSize|ProxyMaxForwards|ProxyPass|ProxyPassReverse|ProxyPreserveHost|ProxyReceiveBufferSize|ProxyRemote|ProxyRemoteMatch|ProxyRequests|ProxyTimeout|ProxyVia)\\b' },
  125. { token: 'keyword.rewrite.apacheconf',
  126. regex: '\\b(?:RewriteBase|RewriteCond|RewriteEngine|RewriteLock|RewriteLog|RewriteLogLevel|RewriteMap|RewriteOptions|RewriteRule)\\b' },
  127. { token: 'keyword.setenvif.apacheconf',
  128. regex: '\\b(?:BrowserMatch|BrowserMatchNoCase|SetEnvIf|SetEnvIfNoCase)\\b' },
  129. { token: 'keyword.so.apacheconf',
  130. regex: '\\b(?:LoadFile|LoadModule)\\b' },
  131. { token: 'keyword.ssl.apacheconf',
  132. regex: '\\b(?:SSLCACertificateFile|SSLCACertificatePath|SSLCARevocationFile|SSLCARevocationPath|SSLCertificateChainFile|SSLCertificateFile|SSLCertificateKeyFile|SSLCipherSuite|SSLEngine|SSLMutex|SSLOptions|SSLPassPhraseDialog|SSLProtocol|SSLProxyCACertificateFile|SSLProxyCACertificatePath|SSLProxyCARevocationFile|SSLProxyCARevocationPath|SSLProxyCipherSuite|SSLProxyEngine|SSLProxyMachineCertificateFile|SSLProxyMachineCertificatePath|SSLProxyProtocol|SSLProxyVerify|SSLProxyVerifyDepth|SSLRandomSeed|SSLRequire|SSLRequireSSL|SSLSessionCache|SSLSessionCacheTimeout|SSLUserName|SSLVerifyClient|SSLVerifyDepth)\\b' },
  133. { token: 'keyword.usertrack.apacheconf',
  134. regex: '\\b(?:CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking)\\b' },
  135. { token: 'keyword.vhost_alias.apacheconf',
  136. regex: '\\b(?:VirtualDocumentRoot|VirtualDocumentRootIP|VirtualScriptAlias|VirtualScriptAliasIP)\\b' },
  137. { token:
  138. [ 'keyword.php.apacheconf',
  139. 'text',
  140. 'entity.property.apacheconf',
  141. 'text',
  142. 'string.value.apacheconf',
  143. 'text' ],
  144. regex: '\\b(php_value|php_flag)\\b(?:(\\s+)(.+?)(?:(\\s+)(.+?))?)?(\\s)' },
  145. { token:
  146. [ 'punctuation.variable.apacheconf',
  147. 'variable.env.apacheconf',
  148. 'variable.misc.apacheconf',
  149. 'punctuation.variable.apacheconf' ],
  150. regex: '(%\\{)(?:(HTTP_USER_AGENT|HTTP_REFERER|HTTP_COOKIE|HTTP_FORWARDED|HTTP_HOST|HTTP_PROXY_CONNECTION|HTTP_ACCEPT|REMOTE_ADDR|REMOTE_HOST|REMOTE_PORT|REMOTE_USER|REMOTE_IDENT|REQUEST_METHOD|SCRIPT_FILENAME|PATH_INFO|QUERY_STRING|AUTH_TYPE|DOCUMENT_ROOT|SERVER_ADMIN|SERVER_NAME|SERVER_ADDR|SERVER_PORT|SERVER_PROTOCOL|SERVER_SOFTWARE|TIME_YEAR|TIME_MON|TIME_DAY|TIME_HOUR|TIME_MIN|TIME_SEC|TIME_WDAY|TIME|API_VERSION|THE_REQUEST|REQUEST_URI|REQUEST_FILENAME|IS_SUBREQ|HTTPS)|(.*?))(\\})' },
  151. { token: [ 'entity.mime-type.apacheconf', 'text' ],
  152. regex: '\\b((?:text|image|application|video|audio)/.+?)(\\s)' },
  153. { token: 'entity.helper.apacheconf',
  154. regex: '\\b(?:from|unset|set|on|off)\\b',
  155. caseInsensitive: true },
  156. { token: 'constant.integer.apacheconf', regex: '\\b\\d+\\b' },
  157. { token:
  158. [ 'text',
  159. 'punctuation.definition.flag.apacheconf',
  160. 'string.flag.apacheconf',
  161. 'punctuation.definition.flag.apacheconf',
  162. 'text' ],
  163. regex: '(\\s)(\\[)(.*?)(\\])(\\s)' } ] }
  164. this.normalizeRules();
  165. };
  166. ApacheConfHighlightRules.metaData = { fileTypes:
  167. [ 'conf',
  168. 'CONF',
  169. 'htaccess',
  170. 'HTACCESS',
  171. 'htgroups',
  172. 'HTGROUPS',
  173. 'htpasswd',
  174. 'HTPASSWD',
  175. '.htaccess',
  176. '.HTACCESS',
  177. '.htgroups',
  178. '.HTGROUPS',
  179. '.htpasswd',
  180. '.HTPASSWD' ],
  181. name: 'Apache Conf',
  182. scopeName: 'source.apacheconf' }
  183. oop.inherits(ApacheConfHighlightRules, TextHighlightRules);
  184. exports.ApacheConfHighlightRules = ApacheConfHighlightRules;
  185. });
  186. ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"], function(require, exports, module) {
  187. "use strict";
  188. var oop = require("../../lib/oop");
  189. var Range = require("../../range").Range;
  190. var BaseFoldMode = require("./fold_mode").FoldMode;
  191. var FoldMode = exports.FoldMode = function(commentRegex) {
  192. if (commentRegex) {
  193. this.foldingStartMarker = new RegExp(
  194. this.foldingStartMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.start)
  195. );
  196. this.foldingStopMarker = new RegExp(
  197. this.foldingStopMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.end)
  198. );
  199. }
  200. };
  201. oop.inherits(FoldMode, BaseFoldMode);
  202. (function() {
  203. this.foldingStartMarker = /(\{|\[)[^\}\]]*$|^\s*(\/\*)/;
  204. this.foldingStopMarker = /^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/;
  205. this.singleLineBlockCommentRe= /^\s*(\/\*).*\*\/\s*$/;
  206. this.tripleStarBlockCommentRe = /^\s*(\/\*\*\*).*\*\/\s*$/;
  207. this.startRegionRe = /^\s*(\/\*|\/\/)#?region\b/;
  208. this._getFoldWidgetBase = this.getFoldWidget;
  209. this.getFoldWidget = function(session, foldStyle, row) {
  210. var line = session.getLine(row);
  211. if (this.singleLineBlockCommentRe.test(line)) {
  212. if (!this.startRegionRe.test(line) && !this.tripleStarBlockCommentRe.test(line))
  213. return "";
  214. }
  215. var fw = this._getFoldWidgetBase(session, foldStyle, row);
  216. if (!fw && this.startRegionRe.test(line))
  217. return "start"; // lineCommentRegionStart
  218. return fw;
  219. };
  220. this.getFoldWidgetRange = function(session, foldStyle, row, forceMultiline) {
  221. var line = session.getLine(row);
  222. if (this.startRegionRe.test(line))
  223. return this.getCommentRegionBlock(session, line, row);
  224. var match = line.match(this.foldingStartMarker);
  225. if (match) {
  226. var i = match.index;
  227. if (match[1])
  228. return this.openingBracketBlock(session, match[1], row, i);
  229. var range = session.getCommentFoldRange(row, i + match[0].length, 1);
  230. if (range && !range.isMultiLine()) {
  231. if (forceMultiline) {
  232. range = this.getSectionRange(session, row);
  233. } else if (foldStyle != "all")
  234. range = null;
  235. }
  236. return range;
  237. }
  238. if (foldStyle === "markbegin")
  239. return;
  240. var match = line.match(this.foldingStopMarker);
  241. if (match) {
  242. var i = match.index + match[0].length;
  243. if (match[1])
  244. return this.closingBracketBlock(session, match[1], row, i);
  245. return session.getCommentFoldRange(row, i, -1);
  246. }
  247. };
  248. this.getSectionRange = function(session, row) {
  249. var line = session.getLine(row);
  250. var startIndent = line.search(/\S/);
  251. var startRow = row;
  252. var startColumn = line.length;
  253. row = row + 1;
  254. var endRow = row;
  255. var maxRow = session.getLength();
  256. while (++row < maxRow) {
  257. line = session.getLine(row);
  258. var indent = line.search(/\S/);
  259. if (indent === -1)
  260. continue;
  261. if (startIndent > indent)
  262. break;
  263. var subRange = this.getFoldWidgetRange(session, "all", row);
  264. if (subRange) {
  265. if (subRange.start.row <= startRow) {
  266. break;
  267. } else if (subRange.isMultiLine()) {
  268. row = subRange.end.row;
  269. } else if (startIndent == indent) {
  270. break;
  271. }
  272. }
  273. endRow = row;
  274. }
  275. return new Range(startRow, startColumn, endRow, session.getLine(endRow).length);
  276. };
  277. this.getCommentRegionBlock = function(session, line, row) {
  278. var startColumn = line.search(/\s*$/);
  279. var maxRow = session.getLength();
  280. var startRow = row;
  281. var re = /^\s*(?:\/\*|\/\/|--)#?(end)?region\b/;
  282. var depth = 1;
  283. while (++row < maxRow) {
  284. line = session.getLine(row);
  285. var m = re.exec(line);
  286. if (!m) continue;
  287. if (m[1]) depth--;
  288. else depth++;
  289. if (!depth) break;
  290. }
  291. var endRow = row;
  292. if (endRow > startRow) {
  293. return new Range(startRow, startColumn, endRow, line.length);
  294. }
  295. };
  296. }).call(FoldMode.prototype);
  297. });
  298. ace.define("ace/mode/apache_conf",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/apache_conf_highlight_rules","ace/mode/folding/cstyle"], function(require, exports, module) {
  299. "use strict";
  300. var oop = require("../lib/oop");
  301. var TextMode = require("./text").Mode;
  302. var ApacheConfHighlightRules = require("./apache_conf_highlight_rules").ApacheConfHighlightRules;
  303. var FoldMode = require("./folding/cstyle").FoldMode;
  304. var Mode = function() {
  305. this.HighlightRules = ApacheConfHighlightRules;
  306. this.foldingRules = new FoldMode();
  307. this.$behaviour = this.$defaultBehaviour;
  308. };
  309. oop.inherits(Mode, TextMode);
  310. (function() {
  311. this.lineCommentStart = "#";
  312. this.$id = "ace/mode/apache_conf";
  313. }).call(Mode.prototype);
  314. exports.Mode = Mode;
  315. });