Skip to content

Commit

Permalink
feat: add c language
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardoperra committed Dec 5, 2023
1 parent 953a081 commit 9b77432
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions packages/config/src/lib/base/languages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,24 @@ export const SUPPORTED_LANGUAGES: readonly LanguageDefinition[] = [
},
],
},
{
id: 'c',
label: 'C',
color: '#555555',
plugin: () =>
Promise.all([
importLegacy(),
import('@codemirror/legacy-modes/mode/clike'),
]).then(([cb, m]) => cb(m.c)),
icons: [
{
name: 'cpp',
extension: '.cpp',
content: () => import('material-icon-theme/icons/c.svg?raw'),
matcher: /^.*\.(c)$/,
},
],
},
{
id: 'xml',
label: 'XML',
Expand Down

0 comments on commit 9b77432

Please sign in to comment.