Skip to content

Commit 6a6d2e6

Browse files
Merge pull request #198 from puppetlabs/hsnodgrass-patch-1
Fix function call name token type in function_indexes method
2 parents 66ed4a2 + 0a278ac commit 6a6d2e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet-lint/data.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ def function_indexes
386386
@function_indexes ||= begin
387387
functions = []
388388
tokens.each_with_index do |token, token_idx|
389-
next unless token.type == :NAME
389+
next unless token.type == :FUNCTION_NAME
390390
next unless token_idx.zero? ||
391391
(token_idx == 1 && tokens[0].type == :WHITESPACE) ||
392392
[:NEWLINE, :INDENT].include?(token.prev_token.type) ||

0 commit comments

Comments
 (0)