-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathASCIIPresentation.JSON-tmLanguage
83 lines (83 loc) · 2.88 KB
/
ASCIIPresentation.JSON-tmLanguage
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{
"name": "ASCIIPresentation",
"scopeName": "source.ascii_presentation",
"fileTypes": ["pres"],
"patterns": [
{
"comment": "list items",
"match": "([-\\*])\\s+(.+)",
"captures": {
"1": { "name": "constant.numeric.ascii_presentation" },
"2": { "name": "keyword.source.ascii_presentation" }
}
},{
"comment": "links",
"match": "https?:\\/\\/.+",
"name": "string.ascii_presentation"
},{
"comment": "headings (between ##)",
"name": "title.ascii_presentation",
"begin": "^(\\#{2})",
"beginCaptures": {
"1": { "name": "ascii_presentation.invisible.ascii_presentation" }
},
"patterns": [
{ "include": "$self" },
{
"match": ".",
"name": "variable.parameter.function.ascii_presentation"
}
],
"end": "(\\#{2})$",
"endCaptures": {
"1": { "name": "ascii_presentation.invisible.ascii_presentation" }
}
},{
"comment": "sub-headings (followed by ##)",
"match": "([-\\w\\s]+) (\\#{3})$",
"captures": {
"1": { "name": "constant.numeric.ascii_presentation" },
"2": { "name": "ascii_presentation.invisible.ascii_presentation" }
}
},{
"comment": "terminal hyphens",
"match": "-{3,}",
"name": "ascii_presentation.chrome.ascii_presentation"
},{
"comment": "terminal buttons with edges",
"match": "(\\|)(o)(o)(o)\\s+(\\|)",
"captures": {
"1": { "name": "ascii_presentation.chrome.ascii_presentation" },
"2": { "name": "ascii_presentation.close.ascii_presentation" },
"3": { "name": "ascii_presentation.minimize.ascii_presentation" },
"4": { "name": "ascii_presentation.expand.ascii_presentation" },
"5": { "name": "ascii_presentation.chrome.ascii_presentation" }
}
},{
"comment": "terminal prompt",
"match": "(\\|)(\\$)([-\\.\\>\\w\\d\\s]*)(\\|)",
"captures": {''
"1": { "name": "ascii_presentation.chrome.ascii_presentation" },
"2": { "name": "variable.parameter.function.ascii_presentation" },
"3": { "name": "string.ascii_presentation" },
"4": { "name": "ascii_presentation.chrome.ascii_presentation" }
}
},{
"comment": "terminal hyphens with edges",
"match": "(\\|)(-+)(\\|)",
"captures": {
"1": { "name": "ascii_presentation.chrome.ascii_presentation" },
"2": { "name": "ascii_presentation.chrome.ascii_presentation" },
"3": { "name": "ascii_presentation.chrome.ascii_presentation" }
}
},{
"comment": "terminal whitespace with edges",
"match": "^\\s*(\\|)\\s+(\\|)$",
"captures": {
"1": { "name": "ascii_presentation.chrome.ascii_presentation" },
"2": { "name": "ascii_presentation.chrome.ascii_presentation" }
}
}
],
"uuid": "ab75384c-fe48-4363-bb6e-2385355dea60"
}