Skip to content

Commit 8c380f3

Browse files
johnmayslildude
andauthored
Add Terraform Template language (#6604)
* Inital branch commit; added Terraform Template * removed sample w/ shell interpreter * removed old swift grammar * Update cached license * Revert "Update cached license" This reverts commit 98f05a0. * Update grammar and license * Update license * Manually correct license * Update module --------- Co-authored-by: Colin Seymour <[email protected]> Co-authored-by: Colin Seymour <[email protected]>
1 parent a45d988 commit 8c380f3

File tree

8 files changed

+441
-0
lines changed

8 files changed

+441
-0
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,6 +1160,9 @@
11601160
[submodule "vendor/grammars/swift-tmlanguage"]
11611161
path = vendor/grammars/swift-tmlanguage
11621162
url = https://github.com/jtbandes/swift-tmlanguage.git
1163+
[submodule "vendor/grammars/syntax"]
1164+
path = vendor/grammars/syntax
1165+
url = https://github.com/hashicorp/syntax.git
11631166
[submodule "vendor/grammars/tcl.tmbundle"]
11641167
path = vendor/grammars/tcl.tmbundle
11651168
url = https://github.com/textmate/tcl.tmbundle

grammars.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,6 +1038,10 @@ vendor/grammars/sweave.tmbundle:
10381038
- text.tex.latex.sweave
10391039
vendor/grammars/swift-tmlanguage:
10401040
- source.swift
1041+
vendor/grammars/syntax:
1042+
- source.hcl
1043+
- source.hcl.terraform
1044+
- source.sentinel
10411045
vendor/grammars/tcl.tmbundle:
10421046
- source.tcl
10431047
- text.html.tcl

lib/linguist/languages.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7061,6 +7061,17 @@ Terra:
70617061
interpreters:
70627062
- lua
70637063
language_id: 371
7064+
Terraform Template:
7065+
type: markup
7066+
extensions:
7067+
- ".tftpl"
7068+
color: "#7b42bb"
7069+
tm_scope: source.hcl.terraform
7070+
ace_mode: ruby
7071+
codemirror_mode: ruby
7072+
codemirror_mime_type: text/x-ruby
7073+
group: HCL
7074+
language_id: 856832701
70647075
Texinfo:
70657076
type: prose
70667077
wrap: true
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": {
3+
"stringValue": "${name}"
4+
},
5+
"email": {
6+
"stringValue": "${email}"
7+
},
8+
"mailing_address": {
9+
"stringValue": "${mailing_address}"
10+
}
11+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"Version": "2012-10-17",
3+
"Statement": [
4+
{
5+
"Effect": "Allow",
6+
"Action": ${jsonencode(ec2_policies)},
7+
"Resource": "*"
8+
},
9+
{
10+
"Effect": "Allow",
11+
"Action": ${jsonencode(s3_policies)},
12+
"Resource": "*"
13+
},
14+
{
15+
"Effect": "Allow",
16+
"Action": ${jsonencode(lambda_policies)},
17+
"Resource": "*"
18+
},
19+
{
20+
"Effect": "Allow",
21+
"Action": ${jsonencode(dynamodb_policies)},
22+
"Resource": "*"
23+
}
24+
]
25+
}

vendor/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,7 @@ This is a list of grammars that Linguist selects to provide syntax highlighting
554554
- **TeX:** [textmate/latex.tmbundle](https://github.com/textmate/latex.tmbundle)
555555
- **Tea:** [pferruggiaro/sublime-tea](https://github.com/pferruggiaro/sublime-tea)
556556
- **Terra:** [pyk/sublime-terra](https://github.com/pyk/sublime-terra)
557+
- **Terraform Template:** [hashicorp/syntax](https://github.com/hashicorp/syntax)
557558
- **Texinfo:** [Alhadis/language-texinfo](https://github.com/Alhadis/language-texinfo)
558559
- **TextMate Properties:** [textmate/textmate.tmbundle](https://github.com/textmate/textmate.tmbundle)
559560
- **Thrift:** [textmate/thrift.tmbundle](https://github.com/textmate/thrift.tmbundle)

vendor/grammars/syntax

Submodule syntax added at ced984b

0 commit comments

Comments
 (0)