Skip to content

Commit 38e7e75

Browse files
authored
Merge pull request #1319 from dsernst/jsx
Handle 'JavaScript with JSX' grammar with node
2 parents 6773761 + 45abef7 commit 38e7e75

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/grammars.coffee

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,14 @@ module.exports =
426426
command: "node"
427427
args: (context) -> [context.filepath]
428428

429+
'JavaScript with JSX':
430+
"Selection Based":
431+
command: "node"
432+
args: (context) -> ['-e', context.getCode()]
433+
"File Based":
434+
command: "node"
435+
args: (context) -> [context.filepath]
436+
429437
"JavaScript for Automation (JXA)":
430438
"Selection Based":
431439
command: "osascript"

0 commit comments

Comments
 (0)