Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 0893d74

Browse files
authored
Merge pull request #639 from atom/dw-fix-styled-call-injection
Allow tagged template injections to accept function parameters
2 parents 25863da + 1f1da30 commit 0893d74

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/main.js

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ exports.activate = function () {
99
switch (firstChild.type) {
1010
case 'identifier':
1111
return languageStringForTemplateTag(firstChild.text)
12+
case 'call_expression':
13+
return languageStringForTemplateTag(firstChild.children[0].text)
1214
case 'member_expression':
1315
if (firstChild.startPosition.row === firstChild.endPosition.row) {
1416
return languageStringForTemplateTag(firstChild.text)

0 commit comments

Comments
 (0)