Skip to content

Commit e5a3ec3

Browse files
Add support for pascal programming language (#652)
* Add support for pascal * docs(changeset): Add support for pascal
1 parent 527a2d7 commit e5a3ec3

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.changeset/wise-carrots-tie.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@codeimage/config': patch
3+
---
4+
5+
Add support for pascal

packages/config/src/lib/base/languages.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -752,4 +752,22 @@ export const SUPPORTED_LANGUAGES: readonly LanguageDefinition[] = [
752752
},
753753
],
754754
},
755+
{
756+
id: 'pascal',
757+
label: 'Pascal',
758+
color: '#E3F171',
759+
plugin: () =>
760+
Promise.all([
761+
importLegacy(),
762+
import('@codemirror/legacy-modes/mode/pascal'),
763+
]).then(([cb, m]) => cb(m.pascal)),
764+
icons: [
765+
{
766+
name: 'Pascal',
767+
extension: '.pas',
768+
content: () => import('material-icon-theme/icons/pascal.svg?raw'),
769+
matcher: /^.*\.(pas)$/,
770+
},
771+
],
772+
},
755773
];

0 commit comments

Comments
 (0)