Skip to content

Commit

Permalink
Merge pull request #17 from DerMolly/python_support
Browse files Browse the repository at this point in the history
add support for python
  • Loading branch information
chronoDave authored Aug 19, 2024
2 parents 52e72f2 + 9d1656a commit 7373443
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const getCommentStyle = script => {
case 'fennel':
return ';;';
case 'ruby':
case 'python':
return '#';
case 'js':
case 'wren':
Expand Down
1 change: 1 addition & 0 deletions test/unit/serialiseMetadata.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const testMetadataFormat = (script, expected) => t => {
{ lang: 'moon', script: 'moon', expected: '-- script:' },
{ lang: 'fennel', script: 'fennel', expected: ';; script:' },
{ lang: 'ruby', script: 'ruby', expected: '# script:' },
{ lang: 'python', script: 'python', expected: '# script:' },
{ lang: 'wren', script: 'wren', expected: '// script:' },
{ lang: 'squirrel', script: 'squirrel', expected: '// script:' }
].forEach(({ lang, script, expected }) => test(
Expand Down

0 comments on commit 7373443

Please sign in to comment.