Closed jedineeper closed 8 years ago
Found the actual issue is that I can't have underscores in name-of-object if that is any help debugging.
Thanks, it looks like this is causing some other problems too, I'll be taking a look within the next couple of days and will hopefully have a fix.
I think this is fixed in the new release as I can't reproduce anymore. Let me know if it's fixed and I'll close this out.
I can still reproduce this with this object after upgrading to language-terraform 0.7.0 and Atom 1.4.0
I have made a fix for this in my pull request #11. The regex has been generalized so that you can have as many "str" as you want, separated by as many whitespaces as you want. Below are three examples that are all getting highlighted:
test "" {}
test "" "" {}
test "" "" "" {}
Do you like it or is it too general?
Ah, I see. Resource was getting highlighted, just not as a keyword. At least thats how it was looking for me. I'm fine with the changes made in @tranberg's PR, I'll just merge that it and cut a new release.
I can confirm this issue is resolved for me in 0.7.1
Thanks @tranberg @GiantToast !
On this line https://github.com/GiantToast/language-terraform/blob/master/grammars/terraform.cson#L177 you reference a number of items as keywords.
However the pattern for matching those keywords appears to be
However, for "resource" there is both a type and a name so the format is
As a result, resource isn't correctly being highlighted as a keyword.
Otherwise, awesome new release :D thanks.