cmur2 / language-terraform

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

Single line comments can start with // #12

Closed jfelixetcetera closed 8 years ago

jfelixetcetera commented 8 years ago

This is valid syntax per the spec: https://github.com/hashicorp/hcl

GiantToast commented 8 years ago

Fixed and pushed an update.

jfelixetcetera commented 8 years ago

So fast, thanks!

sheeley commented 8 years ago

@GiantToast I often comment out single lines within blocks I later toggle, which causes problems:

resource "aws_autoscaling_group" "nomad" {
  ...
  /*load_balancers = ["${aws_elb.api.name}"]*/
  ...
}
/*
resource "aws_autoscaling_group" "nomad" {
  ...
  /*load_balancers = ["${aws_elb.api.name}"]*/ <-- this breaks
  ...
}
*/

Would you be into a PR that comments a single line using # or // rather than /* */?