blob: b2074d358c4b08f1626df5dffaa5411f227d7143 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"information_for_contributors": [
"This provides keywords for Dancer and Dancer2, with a focus on Dancer2"
],
"name": "dancer",
"scopeName": "source.perl.package.dancer",
"injectionSelector": "L:meta.dancer.perl -comment -string -text",
"patterns": [
{
"include": "#dancer"
}
],
"repository": {
"dancer": {
"patterns": [
{
"match": "^\\s*\\b(hook)\\s+(\\w+)\\s+(?==>\\s*sub\\b)",
"captures": {
"1": {
"name": "keyword.other.attribute.dancer.perl"
},
"2": {
"name": "entity.name.function.dancer.perl"
}
}
},
{
"match": "^\\s*\\b(get|any|post|put|patch|delete|del|options|ajax|before_route)(?=.*=>\\s*sub\\b)",
"captures": {
"1": {
"name": "keyword.other.attribute.dancer.perl"
}
}
},
{
"match": "^\\s*\\b(set)\\s+(?=['\"]\\w+['\"]\\s*=>)",
"captures": {
"1": {
"name": "keyword.other.attribute.dancer.perl"
}
}
}
]
}
}
}
|