cpp.contribution.js 748 B

1234567891011121314151617
  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. import { registerLanguage } from '../_.contribution.js';
  6. registerLanguage({
  7. id: 'c',
  8. extensions: ['.c', '.h'],
  9. aliases: ['C', 'c'],
  10. loader: function () { return import('./cpp.js'); }
  11. });
  12. registerLanguage({
  13. id: 'cpp',
  14. extensions: ['.cpp', '.cc', '.cxx', '.hpp', '.hh', '.hxx'],
  15. aliases: ['C++', 'Cpp', 'cpp'],
  16. loader: function () { return import('./cpp.js'); }
  17. });