summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbscan <10503608+bscan@users.noreply.github.com>2024-02-16 17:10:39 -0500
committerbscan <10503608+bscan@users.noreply.github.com>2024-02-16 17:10:39 -0500
commitbba62406571dd4c39a4f74cb7a5ad452f382d03d (patch)
tree4d880c1c11b3bf0d60e7327b47ad2867130ab40c
parent362a3fd0f5739be309339c9b8cd8987707587cf2 (diff)
downloadPerlNavigator-bba62406571dd4c39a4f74cb7a5ad452f382d03d.zip
Fixing grammar issue with multi-line defined-or operator // on new line
-rw-r--r--server/perl.tmLanguage.json10
1 files changed, 8 insertions, 2 deletions
diff --git a/server/perl.tmLanguage.json b/server/perl.tmLanguage.json
index d0094db..9230a11 100644
--- a/server/perl.tmLanguage.json
+++ b/server/perl.tmLanguage.json
@@ -814,16 +814,22 @@
]
},
{
- "begin": "(?<=\\(|=|!|\\{|~|&|\\||\\bif|\\bunless|\\band|\\bor|\\bsplit|\\bgrep|^)\\s*((\\/))(?!\\/=)",
+ "begin": "(?<=\\(|=|!|\\{|~|&|\\||\\bif|\\bunless|\\band|\\bor|\\bsplit|\\bgrep)\\s*((\\/))(?!\\/=)|(?<=^)\\s*((\\/))(?!\\/)",
"beginCaptures": {
"1": {
"name": "string.regexp.find.perl"
},
"2": {
"name": "punctuation.definition.string.perl"
+ },
+ "3": {
+ "name": "string.regexp.find.perl"
+ },
+ "4": {
+ "name": "punctuation.definition.string.perl"
}
},
- "end": "((\\1([egimosxradlupcn]*)))(?=(\\s+\\S|\\s*[;\\,\\#\\{\\}\\)\\.]|\\s*$))",
+ "end": "((\\/([egimosxradlupcn]*)))(?=(\\s+\\S|\\s*[;\\,\\#\\{\\}\\)\\.]|\\s*$))",
"endCaptures": {
"1": {
"name": "string.regexp.find.perl"