diff --git a/lib/puppet-lint/data.rb b/lib/puppet-lint/data.rb index d4aa914a..f219cf5e 100644 --- a/lib/puppet-lint/data.rb +++ b/lib/puppet-lint/data.rb @@ -386,7 +386,7 @@ def function_indexes @function_indexes ||= begin functions = [] tokens.each_with_index do |token, token_idx| - next unless token.type == :NAME + next unless token.type == :FUNCTION_NAME next unless token_idx.zero? || (token_idx == 1 && tokens[0].type == :WHITESPACE) || [:NEWLINE, :INDENT].include?(token.prev_token.type) ||