summaryrefslogtreecommitdiff
path: root/syntaxes
diff options
context:
space:
mode:
authorbscan <10503608+bscan@users.noreply.github.com>2022-11-19 13:50:26 -0500
committerbscan <10503608+bscan@users.noreply.github.com>2022-11-19 13:50:26 -0500
commite8432691940a18e29c3b6608e0b2b6c0e188cf06 (patch)
treee9587d02c525a09cbc9cfc8076c62510827456da /syntaxes
parent0bd31921d16cd8c01b80179730b2a82def78a8e1 (diff)
downloadPerlNavigator-e8432691940a18e29c3b6608e0b2b6c0e188cf06.zip
Dataclass syntax private/public
Diffstat (limited to 'syntaxes')
-rw-r--r--syntaxes/dataclass.json10
1 files changed, 9 insertions, 1 deletions
diff --git a/syntaxes/dataclass.json b/syntaxes/dataclass.json
index c4f63e6..1766daa 100644
--- a/syntaxes/dataclass.json
+++ b/syntaxes/dataclass.json
@@ -32,10 +32,18 @@
}
},
{
- "match": "\\b(class)\\s+(\\w+)\\b(?:\\s+(extends)\\s+(\\w+)\\b)?",
+ "match": "\\b(private|public|protected)\\s+(?=(?:sub|def)\\s)",
"captures": {
"1": {
"name": "keyword.other.attribute.dataclass.perl"
+ }
+ }
+ },
+ {
+ "match": "\\b(class)\\s+(\\w+)\\b(?:\\s+(extends)\\s+(\\w+)\\b)?",
+ "captures": {
+ "1": {
+ "name": "keyword.control.dataclass"
},
"2": {
"name": "entity.name.type.class"