Skip to content

Commit 7373443

Browse files
authored
Merge pull request #17 from DerMolly/python_support
add support for python
2 parents 52e72f2 + 9d1656a commit 7373443

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/utils.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const getCommentStyle = script => {
66
case 'fennel':
77
return ';;';
88
case 'ruby':
9+
case 'python':
910
return '#';
1011
case 'js':
1112
case 'wren':

test/unit/serialiseMetadata.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const testMetadataFormat = (script, expected) => t => {
2323
{ lang: 'moon', script: 'moon', expected: '-- script:' },
2424
{ lang: 'fennel', script: 'fennel', expected: ';; script:' },
2525
{ lang: 'ruby', script: 'ruby', expected: '# script:' },
26+
{ lang: 'python', script: 'python', expected: '# script:' },
2627
{ lang: 'wren', script: 'wren', expected: '// script:' },
2728
{ lang: 'squirrel', script: 'squirrel', expected: '// script:' }
2829
].forEach(({ lang, script, expected }) => test(

0 commit comments

Comments
 (0)