From 73419594af15e94e77bae413d9754d3775cf0280 Mon Sep 17 00:00:00 2001 From: Jan Palus Date: Tue, 12 Dec 2023 19:45:54 +0100 Subject: [PATCH] perl.req: make heredoc block matching more generic match any <) { - # skip the "= <<" block + # skip the heredoc block - if (m/^\s*(?:my\s*)?\$(?:.*)\s*=\s*<<\s*(["'`])(.+?)\1/ || - m/^\s*(?:my\s*)?\$(.*)\s*=\s*<<(\w+)\s*;/) { + if (m/^[^'"#]+[\s,=(]<<\s*(["'`])(.+?)\1/ || + m/^[^'"#]+[\s,=(](<<)(\w+)\s*;/) { $tag = $2; while () { chomp;