Skip to content

Commit

Permalink
Fix substitution references
Browse files Browse the repository at this point in the history
At last.
  • Loading branch information
Altomare committed Apr 5, 2016
1 parent 258432d commit fd22a81
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 3 additions & 1 deletion makefile-plus.YAML-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@ patterns:
repository:
mk_variable:
comment: Variable
match: \$\(([^\):]+)(:[.*?]=[.*?])?\)
match: \$\(([^\):]+)(?:(:).*?(=).*?)?\)
captures:
'1': {name: variable.parameter}
'2': {name: keyword}
'3': {name: keyword}

mk_parenthesis:
name: mk_parenthesis
Expand Down
12 changes: 11 additions & 1 deletion makefile-plus.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,21 @@
<key>name</key>
<string>variable.parameter</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>keyword</string>
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>keyword</string>
</dict>
</dict>
<key>comment</key>
<string>Variable</string>
<key>match</key>
<string>\$\(([^\):]+)(:[.*?]=[.*?])?\)</string>
<string>\$\(([^\):]+)(?:(:).*?(=).*?)?\)</string>
</dict>
</dict>
<key>scopeName</key>
Expand Down

0 comments on commit fd22a81

Please sign in to comment.