diff options
author | Uriel Lizama <uriel@baboonmedia.com> | 2023-08-26 16:53:55 -0600 |
---|---|---|
committer | Uriel Lizama <uriel@baboonmedia.com> | 2023-08-26 16:53:55 -0600 |
commit | 49b6bcde6210ead927b2a332a442d075c77b13d7 (patch) | |
tree | 60fbc0b1fd6cde75e42eeaa2f04aed3e8de651c6 /syntaxes | |
parent | 49285ac451713012d5ead68876a38c14f23a5759 (diff) | |
download | PerlNavigator-49b6bcde6210ead927b2a332a442d075c77b13d7.zip |
Improved support for Dancer and Dancer2
Diffstat (limited to 'syntaxes')
-rw-r--r-- | syntaxes/dancer.json | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/syntaxes/dancer.json b/syntaxes/dancer.json index fb08ca2..3c9ed74 100644 --- a/syntaxes/dancer.json +++ b/syntaxes/dancer.json @@ -15,7 +15,7 @@ "dancer": { "patterns": [ { - "match": "^\\s*\\b(hook)\\s+(\\w+)\\s+(?==>\\s*sub\\b)", + "match": "^\\s*\\b(hook)\\s+(\\w+)\\s+(?=sub\\b)", "captures": { "1": { "name": "keyword.other.attribute.dancer.perl" @@ -26,7 +26,7 @@ } }, { - "match": "^\\s*\\b(get|any|post|put|delete|hook)(?=.*=>\\s*sub\\b)", + "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" |