Skip to content

Commit 2977b80

Browse files
authored
Merge pull request #14 from Jonnymcc/data-source
Add highlighting for data sources
2 parents b34d7b0 + e507cc3 commit 2977b80

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Terraform.YAML-tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ patterns:
3232
match: \b(0x[0-9A-Fa-f]+)([kKmMgG]b?)?\b
3333

3434
- name: meta.resource.terraform
35-
match: (resource)\s+(")(\w+)(")\s+(")([\w-]+)(")\s+({)
35+
match: (resource|data)\s+(")(\w+)(")\s+(")([\w-]+)(")\s+({)
3636
captures:
3737
'1': {name: storage.type.function.terraform}
3838
'2': {name: string.terraform punctuation.definition.string.begin.terraform}

Terraform.tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
</dict>
117117
</dict>
118118
<key>match</key>
119-
<string>(resource)\s+(")(\w+)(")\s+(")([\w-]+)(")\s+({)</string>
119+
<string>(resource|data)\s+(")(\w+)(")\s+(")([\w-]+)(")\s+({)</string>
120120
<key>name</key>
121121
<string>meta.resource.terraform</string>
122122
</dict>

0 commit comments

Comments
 (0)