cmur2 / language-terraform

Terraform.io support for Atom
MIT License
49 stars 32 forks source link

Syntax highlighting for .tfstate files #21

Closed AMeng closed 8 years ago

AMeng commented 8 years ago

Would it be possible for this plugin to syntax highlight *.tfstate files? Those files are really just json, so all the package would need to do is assign that syntax to them. Currently I use this method to set tfstate files to json syntax highlighting in ~/.atom/config.cson:

"*":
  core:
    customFileTypes:
      "source.json": [
        "tfstate"
    ]

It would be nice if this package did that for us automatically. Possibly using the setGrammar method?

AMeng commented 8 years ago

Actually, maybe its more appropriate to have the JSON package handle this. I've opened a PR for that here: https://github.com/atom/language-json/pull/48