mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-08 12:28:47 +00:00
Grammar update
This commit is contained in:
85
vendor/grammars/sublime_man_page_support/man-groff.JSON-tmLanguage
vendored
Normal file
85
vendor/grammars/sublime_man_page_support/man-groff.JSON-tmLanguage
vendored
Normal file
@@ -0,0 +1,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"
|
||||
}
|
||||
Reference in New Issue
Block a user