Skip to content

Variable declarations with reserved keywords are not escaped #133

@paulirwin

Description

@paulirwin

Example input:

    try (InputStream in = new FileInputStream(dictionaryFile)) {
      init(in);
    }

Example output:

    using (InputStream in = new FileInputStream(dictionaryFile))
    {
        Init(@in);
    }

Note above that the use of the variable is correctly escaped, but the declaration is not. Should be:

    using (InputStream @in = new FileInputStream(dictionaryFile))
    {
        Init(@in);
    }

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions