Skip to content

Support for dotenv language type#55

Description

@dslatkin

Hello! Thank you for keeping this extension alive. 馃檹

I have .env, .env.sample, etc. files with comments in them but rewrap doesn't work on them. It would be great if it did. I think the dotenv language mode is effectively a subset of the shellscript language mode, so I would guess the wrapping behavior could be copied from there. If I change the language mode of my .env file to shellscript as a workaround, I get linting errors from other tooling (ShellCheck) designed specifically for actual shell scripts.

For the other open issues for adding wrapping support to different languages, maybe there could be a setting that define "treat this language mode as this other language" in this superset/subset case?

Thanks again.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions