mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
86 lines
2.2 KiB
JSON
86 lines
2.2 KiB
JSON
{ "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"
|
|
}
|