Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4112942
mode-cuttlefish.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
mode-cuttlefish.js
View Options
ace
.
define
(
"ace/mode/cuttlefish_highlight_rules"
,[
"require"
,
"exports"
,
"module"
,
"ace/lib/oop"
,
"ace/mode/text_highlight_rules"
],
function
(
require
,
exports
,
module
){
"use strict"
;
var
oop
=
require
(
"../lib/oop"
);
var
TextHighlightRules
=
require
(
"./text_highlight_rules"
).
TextHighlightRules
;
var
CuttlefishHighlightRules
=
function
()
{
this
.
$rules
=
{
start
:
[{
token
:
[
'text'
,
'comment'
],
regex
:
/^([ \t]*)(#.*)$/
},
{
token
:
[
'text'
,
'keyword'
,
'text'
,
'string'
,
'text'
,
'comment'
],
regex
:
/^([ \t]*)(include)([ \t]*)([A-Za-z0-9-\_\.\*\/]+)([ \t]*)(#.*)?$/
},
{
token
:
[
'text'
,
'keyword'
,
'text'
,
'operator'
,
'text'
,
'string'
,
'text'
,
'comment'
],
regex
:
/^([ \t]*)([A-Za-z0-9-_]+(?:\.[A-Za-z0-9-_]+)*)([ \t]*)(=)([ \t]*)([^ \t#][^#]*?)([ \t]*)(#.*)?$/
},
{
defaultToken
:
'invalid'
}]
};
this
.
normalizeRules
();
};
CuttlefishHighlightRules
.
metaData
=
{
fileTypes
:
[
'conf'
],
keyEquivalent
:
'^~C'
,
name
:
'Cuttlefish'
,
scopeName
:
'source.conf'
};
oop
.
inherits
(
CuttlefishHighlightRules
,
TextHighlightRules
);
exports
.
CuttlefishHighlightRules
=
CuttlefishHighlightRules
;
});
ace
.
define
(
"ace/mode/cuttlefish"
,[
"require"
,
"exports"
,
"module"
,
"ace/lib/oop"
,
"ace/mode/text"
,
"ace/mode/cuttlefish_highlight_rules"
],
function
(
require
,
exports
,
module
){
"use strict"
;
var
oop
=
require
(
"../lib/oop"
);
var
TextMode
=
require
(
"./text"
).
Mode
;
var
CuttlefishHighlightRules
=
require
(
"./cuttlefish_highlight_rules"
).
CuttlefishHighlightRules
;
var
Mode
=
function
()
{
this
.
HighlightRules
=
CuttlefishHighlightRules
;
this
.
foldingRules
=
null
;
this
.
$behaviour
=
this
.
$defaultBehaviour
;
};
oop
.
inherits
(
Mode
,
TextMode
);
(
function
()
{
this
.
lineCommentStart
=
"#"
;
this
.
blockComment
=
null
;
this
.
$id
=
"ace/mode/cuttlefish"
;
}).
call
(
Mode
.
prototype
);
exports
.
Mode
=
Mode
;
});
(
function
()
{
ace
.
require
([
"ace/mode/cuttlefish"
],
function
(
m
)
{
if
(
typeof
module
==
"object"
&&
typeof
exports
==
"object"
&&
module
)
{
module
.
exports
=
m
;
}
});
})();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Aug 18, 23:07 (1 d, 9 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
cf/31/9a35ff9e8244a6e341e7262c6bb7
Default Alt Text
mode-cuttlefish.js (2 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment