Skip to content

Commit b98a0d0

Browse files
committed
PartOfInclude should not match resource parameters named "include"
This issue is similar to the one that was fixed in 5692a81: when trying to identify the special case that looks like: include class1, class2 the function PartOfInclude matches too broadly and catches cases where a resource parameter named "include" is present. This does not correspond to the above and should thus not match.
1 parent aab4083 commit b98a0d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

indent/puppet.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function! s:PartOfInclude(lnum)
3030
if line !~ ',$'
3131
break
3232
endif
33-
if line =~ '^\s*include\s\+[^,]\+,$'
33+
if line =~ '^\s*include\s\+[^,]\+,$' && line !~ '[=>]>'
3434
return 1
3535
endif
3636
endwhile

0 commit comments

Comments
 (0)