Tuesday, January 12, 2021

fault in * in perl files (.pl)

Hi


in .pl files vim includes colon (:) in the identifier character set. This is sort of reasonable, as perl identifiers include those of the form /\w+::\w+/ .


Unfortunately this prevents search finding the next relevant entry in (where the search is started with a * on intl1.):


$intl1 = $intobl + 1 ; # new 12 Jan 2021
s/(\d+)/$1==4?$intl1:$row/eg ; # revised 12 Jan 2021

Can this be changed to only accept double colons as part of an identifier in a * search?


regards - Chris

No comments: