- QUOTE_TOKENS =
[:DQPRE,:DQMID]
- REGEX_INTRODUCING_TOKENS =
[:NODE,:LBRACE, :SELBRACE, :RBRACE,:MATCH,:NOMATCH,:COMMA]
- NOT_INSIDE_QUOTES =
Proc.new do |context|
!QUOTE_TOKENS.include? context[:after]
end
- INSIDE_QUOTES =
Proc.new do |context|
QUOTE_TOKENS.include? context[:after]
end
- IN_REGEX_POSITION =
Proc.new do |context|
REGEX_INTRODUCING_TOKENS.include? context[:after]
end
- DASHED_VARIABLES_ALLOWED =
Proc.new do |context|
Puppet[:allow_variables_with_dashes]
end
- VARIABLE_AND_DASHES_ALLOWED =
Proc.new do |context|
Contextual::DASHED_VARIABLES_ALLOWED.call(context) and TOKENS[:VARIABLE].acceptable?(context)
end