forked from carsonoid/sublime_man_page_support
-
Notifications
You must be signed in to change notification settings - Fork 1
/
man-groff.JSON-tmLanguage
85 lines (85 loc) · 2.17 KB
/
man-groff.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
84
85
{ "name": "Man Page (groff/troff)",
"scopeName": "text.groff",
"fileTypes": ["man", "groff"],
"patterns": [
{
"name": "comment.macro.text.groff",
"match": "^\\.\\\\\".*$",
"comment": "comments"
},
{
"name": "uri.macro.text.groff",
"begin": "^(\\.UR)\\b(.*)$",
"beginCaptures": {
"1": { "name": "keyword.text.groff" },
"2": { "name": "constant.other.text.groff" }
},
"end": "^(\\.UE)",
"endCaptures": {
"1": { "name": "keyword.text.groff" }
},
"patterns": [
{
"name": "string.text.groff",
"match": "."
}
],
"comment": "email address macro"
},
{
"name": "emailaddress.macro.text.groff",
"begin": "^(\\.MT)\\b(.*)$",
"beginCaptures": {
"1": { "name": "keyword.text.groff" },
"2": { "name": "constant.other.text.groff" }
},
"end": "^(\\.ME)",
"endCaptures": {
"1": { "name": "keyword.text.groff" }
},
"patterns": [
{
"name": "string.text.groff",
"match": "."
}
],
"comment": "email address macro"
},
{
"name": "option.macro.text.groff",
"match": "^(\\.OP)\\s([^\\s]+)\\s?(.*)$",
"captures": {
"1": { "name": "keyword.text.groff" },
"2": { "name": "support.constant.text.groff" },
"3": { "name": "string.text.groff" }
},
"comment": "text style macros"
},
{
"name": "style.macro.text.groff",
"begin": "^(\\.SM|\\.SB|\\.BI|\\.IB|\\.RI|\\.IR|\\.BR|\\.RB|\\.B|\\.I)\\b",
"beginCaptures": {
"1": { "name": "keyword.text.groff" }
},
"end": "$",
"patterns": [
{
"name": "string.text.groff",
"match": ".",
"comment": "catch-all"
}
],
"comment": "text style macros"
},
{
"name": "macro.text.groff",
"match": "^(\\.[a-zA-Z]*\\s?)(\\s?.+)?$",
"captures": {
"1": { "name": "keyword.text.groff" },
"2": { "name": "entity.text.groff" }
},
"comment": "marco catch-all"
}
],
"uuid": "9f281c08-ae81-4ccd-b910-a67b17d1952e"
}