Skip to content

Commit

Permalink
Merge pull request #10 from maplebed/master
Browse files Browse the repository at this point in the history
A couple more snippets and README changes.
  • Loading branch information
alexlouden committed Mar 23, 2016
2 parents 1a68694 + 82e93eb commit efd313e
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
Terraform Syntax Highlighting
===============================
Terraform Syntax Highlighting And Snippets
==========================================

Basic support for Terraform's [custom .tf file type](http://www.terraform.io/docs/configuration/syntax.html)
Basic support for Terraform's [custom .tf file type](http://www.terraform.io/docs/configuration/syntax.html), along with snippets for each of the basic Terraform resource types.


![screenshot](screenshot.png)
![screenshot](screenshot2.png)


Installation
Expand Down
Binary file added screenshot2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions snippets/module_github.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<snippet>
<content><![CDATA[
module "${1:name}" {
source = "github.com/${2:owner}/${3:repo}?${4:ref=}"
${5}
}
]]></content>
<tabTrigger>moduleG</tabTrigger>
<scope>source.terraform</scope>
<description>module (github public)</description>
</snippet>
11 changes: 11 additions & 0 deletions snippets/module_github_private.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<snippet>
<content><![CDATA[
module "${1:name}" {
source = "git::ssh://[email protected]/${2:owner}/${3:repo}.git${4:?ref=}"
${5}
}
]]></content>
<tabTrigger>moduleGS</tabTrigger>
<scope>source.terraform</scope>
<description>module (github ssh)</description>
</snippet>
11 changes: 11 additions & 0 deletions snippets/module_path.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<snippet>
<content><![CDATA[
module "${1:name}" {
source = "${2:./modules/}"
${3}
}
]]></content>
<tabTrigger>moduleP</tabTrigger>
<scope>source.terraform</scope>
<description>module (path)</description>
</snippet>

0 comments on commit efd313e

Please sign in to comment.