Commit 085c90ca authored by Kieron Taylor's avatar Kieron Taylor 😠
Browse files

code_action() was prematurely switching mode on /sub/ but substr also matched....

code_action() was prematurely switching mode on /sub/ but substr also matched. Added following character pattern to allow sub{, sub , but not substr.
parent eafd9092
......@@ -445,7 +445,7 @@ sub code_action {
push @big_buffer,$line;
# When we run out of open brackets, or we hit weird unpaired brackets in strings or comments
if ($brackets <=0 || $line =~ /^=/ || $line =~ /^\s*sub/ || $line =~ /^\s*1;/) {
if ($brackets <=0 || $line =~ /^=/ || $line =~ /^\s*sub[\s{]/ || $line =~ /^\s*1;/) {
$state = NORMAL;
push @big_buffer,"\@endcode\n </div>*/\n";
#Add fake function for doxygen to find after the comment.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment