1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-02-13 13:28:27 +02:00
chroma/lexers/testdata/terraform.expected
2020-02-22 09:47:32 +11:00

166 lines
6.3 KiB
Plaintext

[
{"type":"KeywordReserved","value":"variable"},
{"type":"Text","value":" "},
{"type":"LiteralStringDouble","value":"\"some_var\""},
{"type":"Text","value":" "},
{"type":"Punctuation","value":"{"},
{"type":"Text","value":"\n "},
{"type":"NameAttribute","value":"default"},
{"type":"Text","value":" = "},
{"type":"LiteralNumber","value":"12"},
{"type":"Text","value":"\n"},
{"type":"Punctuation","value":"}"},
{"type":"Text","value":"\n"},
{"type":"KeywordReserved","value":"\nresource"},
{"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":"NameAttribute","value":"name"},
{"type":"Text","value":" = "},
{"type":"LiteralStringDouble","value":"\"hello\""},
{"type":"Text","value":"\n "},
{"type":"NameAttribute","value":"value"},
{"type":"Text","value":" = "},
{"type":"NameBuiltin","value":"var"},
{"type":"Punctuation","value":"."},
{"type":"NameOther","value":"some_var"},
{"type":"Text","value":"\n "},
{"type":"NameAttribute","value":"x"},
{"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\n "},
{"type":"NameAttribute","value":"cidr_blocks"},
{"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 "},
{"type":"NameAttribute","value":"str"},
{"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 # Single comment\n"},
{"type":"Text","value":"\n "},
{"type":"NameOther","value":"dynamic"},
{"type":"Text","value":" "},
{"type":"LiteralStringDouble","value":"\"setting\""},
{"type":"Text","value":" "},
{"type":"Punctuation","value":"{"},
{"type":"Text","value":"\n "},
{"type":"NameAttribute","value":"for_each"},
{"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":"NameAttribute","value":"namespace"},
{"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":"NameAttribute","value":"name"},
{"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":"NameAttribute","value":"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"},
{"type":"KeywordReserved","value":"\n\nresource"},
{"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":"NameAttribute","value":"count"},
{"type":"Text","value":" = "},
{"type":"LiteralNumber","value":"3"},
{"type":"Text","value":"\n "},
{"type":"NameAttribute","value":"name"},
{"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":"Text","value":"\n\n"}
]