Skip to content
This repository has been archived by the owner on Nov 5, 2021. It is now read-only.

Commit

Permalink
Merge pull request #71 from ocrampete16/twig-support
Browse files Browse the repository at this point in the history
Add support for the Twig template language
  • Loading branch information
alexdima committed Sep 19, 2019
2 parents ee734dd + 63e076e commit 1cea151
Show file tree
Hide file tree
Showing 7 changed files with 1,227 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -44,6 +44,7 @@ Colorization and configuration supports for multiple languages for the Monaco Ed
* sql
* st
* swift
* twig
* typescript
* vb
* xml
Expand Down
1 change: 1 addition & 0 deletions scripts/bundle.js
Expand Up @@ -76,6 +76,7 @@ bundleOne('azcli/azcli');
bundleOne('apex/apex');
bundleOne('tcl/tcl');
bundleOne('graphql/graphql');
bundleOne('twig/twig');

function bundleOne(moduleId, exclude) {
requirejs.optimize({
Expand Down
1 change: 1 addition & 0 deletions src/monaco.contribution.ts
Expand Up @@ -49,6 +49,7 @@ import './sql/sql.contribution';
import './st/st.contribution';
import './swift/swift.contribution';
import './tcl/tcl.contribution';
import './twig/twig.contribution';
import './typescript/typescript.contribution';
import './vb/vb.contribution';
import './xml/xml.contribution';
Expand Down
15 changes: 15 additions & 0 deletions src/twig/twig.contribution.ts
@@ -0,0 +1,15 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
'use strict';

import { registerLanguage } from '../_.contribution';

registerLanguage({
id: 'twig',
extensions: ['.twig'],
aliases: ['Twig', 'twig'],
mimetypes: ['text/x-twig'],
loader: () => import('./twig')
});

0 comments on commit 1cea151

Please sign in to comment.