Skip to content

Commit b927b46

Browse files
authored
Merge pull request #1358 from GeoffreyBooth/coffeescript-triple-backticks
Add support for CoffeeScript triple backticks
2 parents c212f00 + fdb26b7 commit b927b46

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/languages/coffeescript.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,16 @@ function(hljs) {
7474
begin: '@' + JS_IDENT_RE // relevance booster
7575
},
7676
{
77-
begin: '`', end: '`',
77+
subLanguage: 'javascript',
7878
excludeBegin: true, excludeEnd: true,
79-
subLanguage: 'javascript'
79+
variants: [
80+
{
81+
begin: '```', end: '```',
82+
},
83+
{
84+
begin: '`', end: '`',
85+
}
86+
]
8087
}
8188
];
8289
SUBST.contains = EXPRESSIONS;

0 commit comments

Comments
 (0)