Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IAM policy with */ treated as commend block #44

Open
lczerepuk opened this issue Jan 13, 2021 · 4 comments
Open

IAM policy with */ treated as commend block #44

lczerepuk opened this issue Jan 13, 2021 · 4 comments

Comments

@lczerepuk
Copy link

lczerepuk commented Jan 13, 2021

Hi,

In ST3 when I have a IAM policy with "/*", plugin treated this as comment:

Zrzut ekranu 2021-01-13 o 11 22 29

For example, in Visual Studio its workings good:

Zrzut ekranu 2021-01-13 o 11 25 47

Can you fix it ? I love ST3 and Your plugin, but this bug is very annoying. ;(

@jtcastillo
Copy link

I fixed this by doing a manual install of the plugin via cloning the repo (see instructions on readme) and commenting out lines 170-178 of Terraform.sublime-syntax. Not submitting a PR because this is a quick hack to fix it enough to suit my needs. I have many IAM s3 policies and I don't use block comments, but others might.

@hermitmaster
Copy link

I’d be happy to take this on if someone could give me some guidance. I’m sure the Java syntax handles this problem, I just don’t know where to look.

@ryanpcmcquen
Copy link

I'm also seeing broken syntax inside of jsonencode() with the variable expansion syntax ("${}").

@hermitmaster
Copy link

I found a workaround for this. Remove the quotes from all of the keys and use = instead of :

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants