Skip to content

Commit

Permalink
Merge pull request #38 from patrickrgaffney/symbols
Browse files Browse the repository at this point in the history
Add Symbol Indexing
  • Loading branch information
alexlouden committed Aug 20, 2019
2 parents 888006e + e944b12 commit ac21417
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
29 changes: 29 additions & 0 deletions Symbols.tmPreferences
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Symbol List</string>
<key>scope</key>
<string>
<!--
Resource matches `resource` and `data` blocks. Block matches `provider`,
`provisioner`, `variable`, `output`, `module`, and `atlas` blocks.
-->
meta.resource.terraform,
meta.block.terraform
</string>
<key>settings</key>
<dict>
<key>showInSymbolList</key>
<integer>1</integer>
<key>showInIndexedSymbolList</key>
<integer>1</integer>
<key>symbolTransformation</key>
<string>
<!-- Removes trailing whitespace and opening bracket from symbol. -->
<![CDATA[/\s*{$//]]>
</string>
</dict>
</dict>
</plist>
1 change: 1 addition & 0 deletions Terraform.sublime-syntax
Expand Up @@ -50,6 +50,7 @@ contexts:
7: string.terraform punctuation.definition.string.end.terraform
8: punctuation.definition.tag.terraform
- match: '(provider|provisioner|variable|output|module|atlas)\s+(")?([\w\-]+)(")?\s+({)'
scope: meta.block.terraform
captures:
1: storage.type.function.terraform
2: string.terraform punctuation.definition.string.begin.terraform
Expand Down

0 comments on commit ac21417

Please sign in to comment.