blob: 8beacbfb6d1be8f0a6851ad19cafa3b623c59bc7 (
plain)
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
|
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"information_for_contributors": [
"To modify the grammar, simply update the JSON run the extension. This file detects scope (e.g. is Moo active) and the individual files define the syntax of the scope"
],
"name": "trycatch",
"scopeName": "source.perl.package.trycatch",
"injectionSelector": "L:meta.trycatch.perl -comment -string -text",
"patterns": [
{
"include": "#trycatch"
}
],
"repository": {
"trycatch": {
"patterns": [
{
"match": "\\b(try)\\b",
"name": "keyword.control.trycatch.try"
},
{
"match": "\\b(catch)\\b",
"name": "keyword.control.trycatch.catch"
},
{
"match": "\\b(finally)\\b",
"name": "keyword.control.trycatch.finally"
}
]
}
}
}
|