Skip to content

'undef' is not treated as a special value #66

@thule0

Description

@thule0

Screenshot 2020-06-23 at 12 44 40

What Versions are you running?

OS Version: Catalina
VSCode Version: 1.46.1
Puppet Extension Version: 0.27.3
PDK Version: puppet agent

What You Are Seeing?

Parsing of comments breaks in certain blocks.
The whole block turns bold (I do not know what this means), and if there's a quote in a comment, it is parsed as an opening quote for a string, which breaks the rest of the file.

I have been able to reproduce it in a block where a comparison with undef happens (other values do not produce this behavior):

# This comment is fine
if $var != undef {
    # This comment doesn't  parse properly
    file { 'thing': } 
}

What is Expected?

Pretty obvious

How Did You Get This To Happen? (Steps to Reproduce)

Open new or existing .pp file.
Type example code from above.

Output Log

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions