Skip to content

Commit c18abfb

Browse files
authored
Merge pull request #25 from frizop/master
Update to syntax definition to support resource names
2 parents a90d5a4 + 4871a74 commit c18abfb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Preferences/SymbolList (resource).tmPreferences

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<key>showInSymbolList</key>
1212
<integer>1</integer>
1313
<key>symbolTransformation</key>
14-
<string>s/^\s*(\w+)\s*{\s*['"](.*)['"]:/ \u$1["$2"]/</string>
14+
<string>s/^\s*(\S+)\s*{\s*['"](.*)['"]:/ \u$1["$2"]/</string>
1515
</dict>
1616
<key>uuid</key>
1717
<string>13DD53A2-401B-4149-82B0-001374330B40</string>

Syntaxes/Puppet.sublime-syntax

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ contexts:
7676
captures:
7777
1: storage.type.puppet
7878
2: entity.name.section.puppet
79-
- match: '^\s*(\w+)\s*{\s*([''"].+[''"])\s*:'
79+
- match: '^\s*(\S+)\s*{\s*([''"].+[''"])\s*:'
8080
scope: meta.definition.resource.puppet
8181
captures:
8282
1: storage.type.puppet

Syntaxes/Puppet.tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@
201201
</dict>
202202
</dict>
203203
<key>match</key>
204-
<string>^\s*(\w+)\s*{\s*(['"].+['"]):</string>
204+
<string>^\s*(\S+)\s*{\s*(['"].+['"]):</string>
205205
<key>name</key>
206206
<string>meta.definition.resource.puppet</string>
207207
</dict>

0 commit comments

Comments
 (0)