darwin (owner)

Revisions

gist: 55511 Download_button fork
public
Public Clone URL: git://gist.github.com/55511.git
Embed All Files: show embed
Text only #
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
{ name = 'area.dbg.marker.pagebout.js';
begin = '^(//)(#dbg)\s*$';
end = '^(//)(\2)\s*$';
beginCaptures = {
1 = { name = 'comment.line.punctuation.definition.comment.js'; };
2 = { name = 'active.dbg.token.open.pagebout.comment.line.js'; };
};
endCaptures = {
1 = { name = 'comment.line.punctuation.definition.comment.js'; };
2 = { name = 'active.dbg.token.close.pagebout.comment.line.js'; };
};
patterns = (
{ name = 'active.dbg.marker.pagebout.js';
begin = '^(?=.*//#dbg\s*$)';
end = '(//)(#dbg)\s*$\n';
endCaptures = {
1 = { name = 'comment.line.punctuation.definition.comment.js'; };
2 = { name = 'active.dbg.token.mark.pagebout.comment.line.js'; };
};
patterns = (
{ include = 'source.js.jquery'; },
{ include = 'source.js'; },
);
},
{ include = '$self'; },
);
},
 
 
Text only #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
some javascript line //#dbg <- not match
 
//#dbg <- opening #dbg block
some line //#dbg <- match, we are in opened #dbg block
other line //#xxx <- not match, we are not in opened #xxx block
//#dbg <- closing block
 
this line should not match //#dbg <- not match, not in open #dbg block
 
//#dbg <- and openging again
//#xxx <- opening xxx block inside dbg block
line1 //#dbg <- match
line2 //#xxx <- match
line3 //#other <- not match
//#xxx <- closing
//#dbg <-closing