[ {"type":"KeywordReserved","value":"variable"}, {"type":"Text","value":" "}, {"type":"LiteralStringDouble","value":"\"some_var\""}, {"type":"Text","value":" "}, {"type":"Punctuation","value":"{"}, {"type":"Text","value":"\n "}, {"type":"NameOther","value":"default"}, {"type":"Text","value":" "}, {"type":"Operator","value":"="}, {"type":"Text","value":" "}, {"type":"LiteralNumber","value":"12"}, {"type":"Text","value":"\n"}, {"type":"Punctuation","value":"}"}, {"type":"Text","value":"\n\n"}, {"type":"KeywordReserved","value":"resource"}, {"type":"Text","value":" "}, {"type":"LiteralStringDouble","value":"\"something\""}, {"type":"Text","value":" "}, {"type":"LiteralStringDouble","value":"\"nice\""}, {"type":"Text","value":" "}, {"type":"Punctuation","value":"{"}, {"type":"Text","value":"\n "}, {"type":"NameOther","value":"name"}, {"type":"Text","value":" "}, {"type":"Operator","value":"="}, {"type":"Text","value":" "}, {"type":"LiteralStringDouble","value":"\"hello\""}, {"type":"Text","value":"\n "}, {"type":"NameOther","value":"value"}, {"type":"Text","value":" "}, {"type":"Operator","value":"="}, {"type":"Text","value":" "}, {"type":"NameBuiltin","value":"var"}, {"type":"Punctuation","value":"."}, {"type":"NameOther","value":"some_var"}, {"type":"Text","value":"\n "}, {"type":"NameOther","value":"x"}, {"type":"Text","value":" "}, {"type":"Operator","value":"="}, {"type":"Text","value":" "}, {"type":"NameBuiltin","value":"var"}, {"type":"Punctuation","value":"."}, {"type":"NameOther","value":"some_var"}, {"type":"Text","value":" "}, {"type":"Operator","value":"\u003e"}, {"type":"Text","value":" "}, {"type":"LiteralNumber","value":"5"}, {"type":"Text","value":" "}, {"type":"Operator","value":"?"}, {"type":"Text","value":" "}, {"type":"NameBuiltin","value":"var"}, {"type":"Punctuation","value":"."}, {"type":"NameOther","value":"some_var"}, {"type":"Text","value":" "}, {"type":"Operator","value":":"}, {"type":"Text","value":" "}, {"type":"LiteralNumber","value":"10"}, {"type":"Text","value":"\n "}, {"type":"NameOther","value":"cidr_blocks"}, {"type":"Text","value":" "}, {"type":"Operator","value":"="}, {"type":"Text","value":" "}, {"type":"Punctuation","value":"["}, {"type":"Text","value":"\n "}, {"type":"Keyword","value":"for"}, {"type":"Text","value":" "}, {"type":"NameOther","value":"num"}, {"type":"Text","value":" "}, {"type":"Keyword","value":"in"}, {"type":"Text","value":" "}, {"type":"Punctuation","value":"["}, {"type":"LiteralNumber","value":"1"}, {"type":"Punctuation","value":","}, {"type":"LiteralNumber","value":"2"}, {"type":"Punctuation","value":","}, {"type":"LiteralNumber","value":"3"}, {"type":"Punctuation","value":"]"}, {"type":"Operator","value":":"}, {"type":"Text","value":"\n "}, {"type":"NameBuiltin","value":"cidrhost"}, {"type":"Punctuation","value":"("}, {"type":"LiteralStringDouble","value":"\"10.0.0.0/24\""}, {"type":"Punctuation","value":","}, {"type":"Text","value":" "}, {"type":"NameOther","value":"num"}, {"type":"Punctuation","value":")"}, {"type":"Text","value":"\n "}, {"type":"Punctuation","value":"]"}, {"type":"Text","value":"\n\n "}, {"type":"NameOther","value":"str"}, {"type":"Text","value":" "}, {"type":"Operator","value":"="}, {"type":"Text","value":" "}, {"type":"Operator","value":"\u003c\u003c-EOT"}, {"type":"LiteralString","value":"\n hello\n world\n "}, {"type":"Operator","value":"EOT"}, {"type":"Text","value":"\n\n "}, {"type":"CommentMultiline","value":"/*\n Multiline comment\n */"}, {"type":"CommentSingle","value":"\n\n # Single comment\n"}, {"type":"Text","value":" "}, {"type":"NameOther","value":"dynamic"}, {"type":"Text","value":" "}, {"type":"LiteralStringDouble","value":"\"setting\""}, {"type":"Text","value":" "}, {"type":"Punctuation","value":"{"}, {"type":"Text","value":"\n "}, {"type":"NameOther","value":"for_each"}, {"type":"Text","value":" "}, {"type":"Operator","value":"="}, {"type":"Text","value":" "}, {"type":"NameBuiltin","value":"var"}, {"type":"Punctuation","value":"."}, {"type":"NameOther","value":"settings"}, {"type":"Text","value":"\n "}, {"type":"NameOther","value":"content"}, {"type":"Text","value":" "}, {"type":"Punctuation","value":"{"}, {"type":"Text","value":"\n "}, {"type":"NameOther","value":"namespace"}, {"type":"Text","value":" "}, {"type":"Operator","value":"="}, {"type":"Text","value":" "}, {"type":"NameOther","value":"setting"}, {"type":"Punctuation","value":"."}, {"type":"NameOther","value":"value"}, {"type":"Punctuation","value":"["}, {"type":"LiteralStringDouble","value":"\"namespace\""}, {"type":"Punctuation","value":"]"}, {"type":"Text","value":"\n "}, {"type":"NameOther","value":"name"}, {"type":"Text","value":" "}, {"type":"Operator","value":"="}, {"type":"Text","value":" "}, {"type":"NameOther","value":"setting"}, {"type":"Punctuation","value":"."}, {"type":"NameOther","value":"value"}, {"type":"Punctuation","value":"["}, {"type":"LiteralStringDouble","value":"\"name\""}, {"type":"Punctuation","value":"]"}, {"type":"Text","value":"\n "}, {"type":"NameOther","value":"value"}, {"type":"Text","value":" "}, {"type":"Operator","value":"="}, {"type":"Text","value":" "}, {"type":"NameOther","value":"setting"}, {"type":"Punctuation","value":"."}, {"type":"NameOther","value":"value"}, {"type":"Punctuation","value":"["}, {"type":"LiteralStringDouble","value":"\"value\""}, {"type":"Punctuation","value":"]"}, {"type":"Text","value":"\n "}, {"type":"Punctuation","value":"}"}, {"type":"Text","value":"\n "}, {"type":"Punctuation","value":"}"}, {"type":"Text","value":"\n"}, {"type":"Punctuation","value":"}"}, {"type":"Text","value":"\n\n"}, {"type":"KeywordReserved","value":"resource"}, {"type":"Text","value":" "}, {"type":"LiteralStringDouble","value":"\"other\""}, {"type":"Text","value":" "}, {"type":"LiteralStringDouble","value":"\"resource\""}, {"type":"Text","value":" "}, {"type":"Punctuation","value":"{"}, {"type":"Text","value":"\n "}, {"type":"NameBuiltin","value":"count"}, {"type":"Text","value":" "}, {"type":"Operator","value":"="}, {"type":"Text","value":" "}, {"type":"LiteralNumber","value":"3"}, {"type":"Text","value":"\n "}, {"type":"NameOther","value":"name"}, {"type":"Text","value":" "}, {"type":"Operator","value":"="}, {"type":"Text","value":" "}, {"type":"LiteralStringDouble","value":"\"resource"}, {"type":"LiteralStringInterpol","value":"${"}, {"type":"NameBuiltin","value":"count"}, {"type":"Punctuation","value":"."}, {"type":"NameOther","value":"index"}, {"type":"Operator","value":"+"}, {"type":"LiteralNumber","value":"1"}, {"type":"LiteralStringInterpol","value":"}"}, {"type":"LiteralStringDouble","value":"\""}, {"type":"Text","value":"\n"}, {"type":"Punctuation","value":"}"}, {"type":"CommentSingle","value":"\n\n# #988 'Dot in string breaks highlighting in Terraform'\n"}, {"type":"KeywordReserved","value":"resource"}, {"type":"Text","value":" "}, {"type":"LiteralStringDouble","value":"\"aws_s3_bucket\""}, {"type":"Text","value":" "}, {"type":"LiteralStringDouble","value":"\"this\""}, {"type":"Text","value":" "}, {"type":"Punctuation","value":"{"}, {"type":"Text","value":"\n "}, {"type":"NameOther","value":"bucket"}, {"type":"Text","value":" "}, {"type":"Operator","value":"="}, {"type":"Text","value":" "}, {"type":"LiteralStringDouble","value":"\"my-tf-test-bucket\""}, {"type":"Text","value":"\n "}, {"type":"NameOther","value":"website"}, {"type":"Text","value":" "}, {"type":"Punctuation","value":"{"}, {"type":"Text","value":"\n "}, {"type":"NameOther","value":"index_document"}, {"type":"Text","value":" "}, {"type":"Operator","value":"="}, {"type":"Text","value":" "}, {"type":"LiteralStringDouble","value":"\"index.html\""}, {"type":"Text","value":"\n "}, {"type":"NameOther","value":"error_document"}, {"type":"Text","value":" "}, {"type":"Operator","value":"="}, {"type":"Text","value":" "}, {"type":"LiteralStringDouble","value":"\"error.html\""}, {"type":"Text","value":"\n "}, {"type":"Punctuation","value":"}"}, {"type":"Text","value":"\n"}, {"type":"Punctuation","value":"}"}, {"type":"CommentSingle","value":"\n\n# An IAM Policy Document that has a parameter 'variable' that overlaps with the variable class\n# variable = below should be variable (text) = (punctuation). variable above should be NameReserved\n"}, {"type":"KeywordReserved","value":"data"}, {"type":"Text","value":" "}, {"type":"LiteralStringDouble","value":"\"aws_iam_policy_document\""}, {"type":"Text","value":" "}, {"type":"LiteralStringDouble","value":"\"example\""}, {"type":"Text","value":" "}, {"type":"Punctuation","value":"{"}, {"type":"Text","value":"\n "}, {"type":"NameOther","value":"statement"}, {"type":"Text","value":" "}, {"type":"Punctuation","value":"{"}, {"type":"Text","value":"\n "}, {"type":"NameOther","value":"sid"}, {"type":"Text","value":" "}, {"type":"Operator","value":"="}, {"type":"Text","value":" "}, {"type":"LiteralStringDouble","value":"\"1\""}, {"type":"Text","value":"\n "}, {"type":"NameOther","value":"actions"}, {"type":"Text","value":" "}, {"type":"Operator","value":"="}, {"type":"Text","value":" "}, {"type":"Punctuation","value":"["}, {"type":"Text","value":"\n "}, {"type":"LiteralStringDouble","value":"\"s3:ListAllMyBuckets\""}, {"type":"Punctuation","value":","}, {"type":"Text","value":"\n "}, {"type":"LiteralStringDouble","value":"\"s3:GetBucketLocation\""}, {"type":"Punctuation","value":","}, {"type":"Text","value":"\n "}, {"type":"Punctuation","value":"]"}, {"type":"Text","value":"\n "}, {"type":"NameOther","value":"resources"}, {"type":"Text","value":" "}, {"type":"Operator","value":"="}, {"type":"Text","value":" "}, {"type":"Punctuation","value":"["}, {"type":"Text","value":"\n "}, {"type":"LiteralStringDouble","value":"\"arn:aws:s3:::*\""}, {"type":"Punctuation","value":","}, {"type":"Text","value":"\n "}, {"type":"Punctuation","value":"]"}, {"type":"Text","value":"\n "}, {"type":"Punctuation","value":"}"}, {"type":"Text","value":"\n "}, {"type":"NameOther","value":"statement"}, {"type":"Text","value":" "}, {"type":"Punctuation","value":"{"}, {"type":"Text","value":"\n "}, {"type":"NameOther","value":"actions"}, {"type":"Text","value":" "}, {"type":"Operator","value":"="}, {"type":"Text","value":" "}, {"type":"Punctuation","value":"["}, {"type":"Text","value":"\n "}, {"type":"LiteralStringDouble","value":"\"s3:ListBucket\""}, {"type":"Punctuation","value":","}, {"type":"Text","value":"\n "}, {"type":"Punctuation","value":"]"}, {"type":"Text","value":"\n "}, {"type":"NameOther","value":"resources"}, {"type":"Text","value":" "}, {"type":"Operator","value":"="}, {"type":"Text","value":" "}, {"type":"Punctuation","value":"["}, {"type":"Text","value":"\n "}, {"type":"LiteralStringDouble","value":"\"arn:aws:s3:::"}, {"type":"LiteralStringInterpol","value":"${"}, {"type":"NameBuiltin","value":"var"}, {"type":"Punctuation","value":"."}, {"type":"NameOther","value":"s3_bucket_name"}, {"type":"LiteralStringInterpol","value":"}"}, {"type":"LiteralStringDouble","value":"\""}, {"type":"Punctuation","value":","}, {"type":"Text","value":"\n "}, {"type":"Punctuation","value":"]"}, {"type":"Text","value":"\n "}, {"type":"NameOther","value":"condition"}, {"type":"Text","value":" "}, {"type":"Punctuation","value":"{"}, {"type":"Text","value":"\n "}, {"type":"NameOther","value":"test"}, {"type":"Text","value":" "}, {"type":"Operator","value":"="}, {"type":"Text","value":" "}, {"type":"LiteralStringDouble","value":"\"StringLike\""}, {"type":"Text","value":"\n "}, {"type":"NameOther","value":"variable"}, {"type":"Text","value":" "}, {"type":"Operator","value":"="}, {"type":"Text","value":" "}, {"type":"LiteralStringDouble","value":"\"s3:prefix\""}, {"type":"Text","value":"\n "}, {"type":"NameOther","value":"values"}, {"type":"Text","value":" "}, {"type":"Operator","value":"="}, {"type":"Text","value":" "}, {"type":"Punctuation","value":"["}, {"type":"Text","value":"\n "}, {"type":"LiteralStringDouble","value":"\"\""}, {"type":"Punctuation","value":","}, {"type":"Text","value":"\n "}, {"type":"LiteralStringDouble","value":"\"home/\""}, {"type":"Punctuation","value":","}, {"type":"Text","value":"\n "}, {"type":"LiteralStringDouble","value":"\"home/\u0026{aws:username}/\""}, {"type":"Punctuation","value":","}, {"type":"Text","value":"\n "}, {"type":"Punctuation","value":"]"}, {"type":"Text","value":"\n "}, {"type":"Punctuation","value":"}"}, {"type":"Text","value":"\n "}, {"type":"Punctuation","value":"}"}, {"type":"Text","value":"\n "}, {"type":"NameOther","value":"statement"}, {"type":"Text","value":" "}, {"type":"Punctuation","value":"{"}, {"type":"Text","value":"\n "}, {"type":"NameOther","value":"actions"}, {"type":"Text","value":" "}, {"type":"Operator","value":"="}, {"type":"Text","value":" "}, {"type":"Punctuation","value":"["}, {"type":"Text","value":"\n "}, {"type":"LiteralStringDouble","value":"\"s3:*\""}, {"type":"Punctuation","value":","}, {"type":"Text","value":"\n "}, {"type":"Punctuation","value":"]"}, {"type":"Text","value":"\n "}, {"type":"NameOther","value":"resources"}, {"type":"Text","value":" "}, {"type":"Operator","value":"="}, {"type":"Text","value":" "}, {"type":"Punctuation","value":"["}, {"type":"Text","value":"\n "}, {"type":"LiteralStringDouble","value":"\"arn:aws:s3:::"}, {"type":"LiteralStringInterpol","value":"${"}, {"type":"NameBuiltin","value":"var"}, {"type":"Punctuation","value":"."}, {"type":"NameOther","value":"s3_bucket_name"}, {"type":"LiteralStringInterpol","value":"}"}, {"type":"LiteralStringDouble","value":"/home/\u0026{aws:username}\""}, {"type":"Punctuation","value":","}, {"type":"Text","value":"\n "}, {"type":"LiteralStringDouble","value":"\"arn:aws:s3:::"}, {"type":"LiteralStringInterpol","value":"${"}, {"type":"NameBuiltin","value":"var"}, {"type":"Punctuation","value":"."}, {"type":"NameOther","value":"s3_bucket_name"}, {"type":"LiteralStringInterpol","value":"}"}, {"type":"LiteralStringDouble","value":"/home/\u0026{aws:username}/*\""}, {"type":"Punctuation","value":","}, {"type":"Text","value":"\n "}, {"type":"Punctuation","value":"]"}, {"type":"Text","value":"\n "}, {"type":"Punctuation","value":"}"}, {"type":"Text","value":"\n"}, {"type":"Punctuation","value":"}"}, {"type":"CommentSingle","value":"\n\n# the _ in default_tags gets identified as `err` and shouldn't\n"}, {"type":"KeywordReserved","value":"provider"}, {"type":"Text","value":" "}, {"type":"LiteralStringDouble","value":"\"aws\""}, {"type":"Text","value":" "}, {"type":"Punctuation","value":"{"}, {"type":"Text","value":"\n "}, {"type":"NameOther","value":"default_tags"}, {"type":"Text","value":" "}, {"type":"Punctuation","value":"{"}, {"type":"Text","value":"\n "}, {"type":"NameOther","value":"tags"}, {"type":"Text","value":" "}, {"type":"Operator","value":"="}, {"type":"Text","value":" "}, {"type":"Punctuation","value":"{"}, {"type":"Text","value":"\n "}, {"type":"NameOther","value":"name"}, {"type":"Text","value":" "}, {"type":"Operator","value":"="}, {"type":"Text","value":" "}, {"type":"LiteralStringDouble","value":"\"My Awesome AWS Environment\""}, {"type":"Text","value":"\n "}, {"type":"NameOther","value":"environment"}, {"type":"Text","value":" "}, {"type":"Operator","value":"="}, {"type":"Text","value":" "}, {"type":"NameBuiltin","value":"var"}, {"type":"Punctuation","value":"."}, {"type":"NameOther","value":"app"}, {"type":"Punctuation","value":"."}, {"type":"NameOther","value":"environment"}, {"type":"Text","value":"\n "}, {"type":"NameOther","value":"application"}, {"type":"Text","value":" "}, {"type":"Operator","value":"="}, {"type":"Text","value":" "}, {"type":"NameBuiltin","value":"var"}, {"type":"Punctuation","value":"."}, {"type":"NameOther","value":"app"}, {"type":"Punctuation","value":"."}, {"type":"NameOther","value":"name"}, {"type":"Text","value":"\n "}, {"type":"NameOther","value":"owner"}, {"type":"Text","value":" "}, {"type":"Operator","value":"="}, {"type":"Text","value":" "}, {"type":"NameBuiltin","value":"var"}, {"type":"Punctuation","value":"."}, {"type":"NameOther","value":"app"}, {"type":"Punctuation","value":"."}, {"type":"NameOther","value":"owner"}, {"type":"Text","value":"\n "}, {"type":"NameOther","value":"contact"}, {"type":"Text","value":" "}, {"type":"Operator","value":"="}, {"type":"Text","value":" "}, {"type":"NameBuiltin","value":"var"}, {"type":"Punctuation","value":"."}, {"type":"NameOther","value":"app"}, {"type":"Punctuation","value":"."}, {"type":"NameOther","value":"contact"}, {"type":"Text","value":"\n "}, {"type":"Punctuation","value":"}"}, {"type":"Text","value":"\n "}, {"type":"Punctuation","value":"}"}, {"type":"Text","value":"\n"}, {"type":"Punctuation","value":"}"}, {"type":"CommentSingle","value":"\n\n# name here is NameAttribute\n"}, {"type":"KeywordReserved","value":"resource"}, {"type":"Text","value":" "}, {"type":"LiteralStringDouble","value":"\"aws_lb\""}, {"type":"Text","value":" "}, {"type":"LiteralStringDouble","value":"\"web\""}, {"type":"Text","value":" "}, {"type":"Punctuation","value":"{"}, {"type":"Text","value":"\n"}, {"type":"NameAttribute","value":"\tname"}, {"type":"Text","value":" "}, {"type":"Operator","value":"="}, {"type":"Text","value":" "}, {"type":"LiteralStringDouble","value":"\"my fancy lb\""}, {"type":"Text","value":"\n\t"}, {"type":"NameOther","value":"port"}, {"type":"Text","value":" "}, {"type":"Operator","value":"="}, {"type":"Text","value":" "}, {"type":"LiteralNumber","value":"80"}, {"type":"Text","value":"\n"}, {"type":"Punctuation","value":"}"}, {"type":"CommentSingle","value":"\n\n# The first name is NameAttribute the second is not\n"}, {"type":"KeywordReserved","value":"resource"}, {"type":"Text","value":" "}, {"type":"LiteralStringDouble","value":"\"aws_s3_bucket\""}, {"type":"Text","value":" "}, {"type":"LiteralStringDouble","value":"\"my_bucket\""}, {"type":"Text","value":" "}, {"type":"Punctuation","value":"{"}, {"type":"Text","value":"\n"}, {"type":"NameAttribute","value":"\tname"}, {"type":"Text","value":" "}, {"type":"Operator","value":"="}, {"type":"Text","value":" "}, {"type":"NameBuiltin","value":"var"}, {"type":"Punctuation","value":"."}, {"type":"NameOther","value":"name"}, {"type":"Text","value":"\n\n"}, {"type":"Punctuation","value":"}"}, {"type":"CommentSingle","value":"\n\n# type, description, default are all NameAttribute\n"}, {"type":"KeywordReserved","value":"variable"}, {"type":"Text","value":" "}, {"type":"LiteralStringDouble","value":"\"my_variable\""}, {"type":"Text","value":" "}, {"type":"Punctuation","value":"{"}, {"type":"Text","value":"\n"}, {"type":"NameAttribute","value":"\ttype"}, {"type":"Text","value":" "}, {"type":"Operator","value":"="}, {"type":"Text","value":" "}, {"type":"NameOther","value":"number"}, {"type":"Text","value":"\n"}, {"type":"NameAttribute","value":"\tdescription"}, {"type":"Text","value":" "}, {"type":"Operator","value":"="}, {"type":"Text","value":" "}, {"type":"LiteralStringDouble","value":"\"The port the application listens on\""}, {"type":"Text","value":"\n"}, {"type":"NameAttribute","value":"\tdefault"}, {"type":"Text","value":" "}, {"type":"Operator","value":"="}, {"type":"Text","value":" "}, {"type":"LiteralNumber","value":"80"}, {"type":"Text","value":"\n"}, {"type":"Punctuation","value":"}"}, {"type":"Text","value":"\n"} ]