diff options
author | bscan <10503608+bscan@users.noreply.github.com> | 2023-07-07 20:08:17 -0400 |
---|---|---|
committer | bscan <10503608+bscan@users.noreply.github.com> | 2023-07-07 20:08:17 -0400 |
commit | ecd8f6843f91fbb2f647bab817943e2df3df5dce (patch) | |
tree | fbb6e55dd6c2d0f657b1c68573f7090575c76c7a /syntaxes | |
parent | 9d7e02599d3b0a67ea9517305d0a1ae94799e0ae (diff) | |
download | PerlNavigator-ecd8f6843f91fbb2f647bab817943e2df3df5dce.zip |
Various fixes, detailed in changelog
Diffstat (limited to 'syntaxes')
-rw-r--r-- | syntaxes/moose.json | 2 | ||||
-rw-r--r-- | syntaxes/object-pad.json | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/syntaxes/moose.json b/syntaxes/moose.json index cbafb3b..8fb1a90 100644 --- a/syntaxes/moose.json +++ b/syntaxes/moose.json @@ -37,7 +37,7 @@ "name": "keyword.control.moose.perl" }, { - "match": "\\b(has)(?:\\s+(\\+|)([-a-zA-Z0-9_]+))?\\s*", + "match": "\\b(has)\\s+(?:(\\+|)([-a-zA-Z0-9_]+)\\b)?", "captures": { "1": { "name": "keyword.other.attribute.moose.perl" diff --git a/syntaxes/object-pad.json b/syntaxes/object-pad.json index 0d8cef0..7ed675c 100644 --- a/syntaxes/object-pad.json +++ b/syntaxes/object-pad.json @@ -15,13 +15,19 @@ "objectpad": { "patterns": [ { - "match": "\\b(has|field)\\s+([\\$\\@\\%]\\w+)\\b", + "match": "\\b(has|field)\\s+([\\$\\@\\%]\\w+)\\b(?:\\s+:(param)(?:\\(\\s*(\\w+)\\s*\\)|\\b))?", "captures": { "1": { "name": "keyword.other.attribute.objectpad.perl" }, "2": { "name": "variable.other.readwrite.objectpad.perl" + }, + "3": { + "name": "constant.language.objectpad" + }, + "4": { + "name": "entity.name.function.perl" } } }, |