Skip to content

Commit 3fea063

Browse files
committed
feat(vscode): add coffeescript syntax highlight
1 parent 2149557 commit 3fea063

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

extensions/vscode/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114
"source.ts": "typescript",
115115
"source.js.jsx": "javascriptreact",
116116
"source.tsx": "typescriptreact",
117+
"source.coffee": "coffeescript",
117118
"meta.tag.js": "jsx-tags",
118119
"meta.tag.tsx": "jsx-tags",
119120
"meta.tag.without-attributes.js": "jsx-tags",
@@ -156,6 +157,7 @@
156157
"source.ts": "typescript",
157158
"source.js.jsx": "javascriptreact",
158159
"source.tsx": "typescriptreact",
160+
"source.coffee": "coffeescript",
159161
"meta.tag.js": "jsx-tags",
160162
"meta.tag.tsx": "jsx-tags",
161163
"meta.tag.without-attributes.js": "jsx-tags",

extensions/vscode/syntaxes/vue.tmLanguage.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,38 @@
439439
}
440440
]
441441
},
442+
{
443+
"begin": "([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['\"]?)coffee\\b\\2)",
444+
"beginCaptures": {
445+
"1": {
446+
"name": "entity.name.tag.$1.html.vue"
447+
}
448+
},
449+
"end": "(</)(\\1)\\s*(?=>)",
450+
"endCaptures": {
451+
"1": {
452+
"name": "punctuation.definition.tag.begin.html.vue"
453+
},
454+
"2": {
455+
"name": "entity.name.tag.$2.html.vue"
456+
}
457+
},
458+
"patterns": [
459+
{
460+
"include": "#tag-stuff"
461+
},
462+
{
463+
"begin": "(?<=>)",
464+
"end": "(?=<\\/)",
465+
"name": "source.coffee",
466+
"patterns": [
467+
{
468+
"include": "source.coffee"
469+
}
470+
]
471+
}
472+
]
473+
},
442474
{
443475
"begin": "([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['\"]?)json\\b\\2)",
444476
"beginCaptures": {

0 commit comments

Comments
 (0)