python.contribution.ts 627 B

123456789101112131415
  1. /*---------------------------------------------------------------------------------------------
  2. * Copyright (c) Microsoft Corporation. All rights reserved.
  3. * Licensed under the MIT License. See License.txt in the project root for license information.
  4. *--------------------------------------------------------------------------------------------*/
  5. 'use strict';
  6. import { registerLanguage } from '../_.contribution';
  7. registerLanguage({
  8. id: 'python',
  9. extensions: ['.py', '.rpy', '.pyw', '.cpy', '.gyp', '.gypi'],
  10. aliases: ['Python', 'py'],
  11. firstLine: '^#!/.*\\bpython[0-9.-]*\\b',
  12. loader: () => import('./python')
  13. });