Skip to content

Commit 07a7415

Browse files
committed
twig support
1 parent 1fa48e5 commit 07a7415

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Missing CSS support for HTML documents.
2121
- jade
2222
- handlebars
2323
- php
24+
- twig
2425

2526
## Remote Style Sheets
2627

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-html-css",
33
"displayName": "HTML CSS Support",
44
"description": "CSS support for HTML documents",
5-
"version": "0.1.3",
5+
"version": "0.1.4",
66
"publisher": "ecmel",
77
"license": "MIT",
88
"homepage": "https://github.com/ecmel/vscode-html-css",
@@ -46,7 +46,8 @@
4646
"onLanguage:pug",
4747
"onLanguage:jade",
4848
"onLanguage:handlebars",
49-
"onLanguage:php"
49+
"onLanguage:php",
50+
"onLanguage:twig"
5051
],
5152
"main": "./out/src/extension",
5253
"scripts": {

src/extension.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ export function activate(context: vsc.ExtensionContext) {
181181
'pug',
182182
'jade',
183183
'handlebars',
184-
'php'
184+
'php',
185+
'twig'
185186
], classServer));
186187

187188
let wp = /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\.\"\,\<\>\/\?\s]+)/g;
@@ -194,6 +195,8 @@ export function activate(context: vsc.ExtensionContext) {
194195
context.subscriptions.push(vsc.languages.setLanguageConfiguration('jade', { wordPattern: wp }));
195196
context.subscriptions.push(vsc.languages.setLanguageConfiguration('handlebars', { wordPattern: wp }));
196197
context.subscriptions.push(vsc.languages.setLanguageConfiguration('php', { wordPattern: wp }));
198+
context.subscriptions.push(vsc.languages.setLanguageConfiguration('twig', { wordPattern: wp }));
199+
197200
context.subscriptions.push(vsc.workspace.onDidChangeConfiguration((e) => parseRemoteConfig()));
198201
}
199202

0 commit comments

Comments
 (0)