We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 66ed4a2 + 0a278ac commit 6a6d2e6Copy full SHA for 6a6d2e6
lib/puppet-lint/data.rb
@@ -386,7 +386,7 @@ def function_indexes
386
@function_indexes ||= begin
387
functions = []
388
tokens.each_with_index do |token, token_idx|
389
- next unless token.type == :NAME
+ next unless token.type == :FUNCTION_NAME
390
next unless token_idx.zero? ||
391
(token_idx == 1 && tokens[0].type == :WHITESPACE) ||
392
[:NEWLINE, :INDENT].include?(token.prev_token.type) ||
0 commit comments