mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
524 B
20 lines
524 B
(function (Prism) {
|
|
|
|
Prism.languages.erb = Prism.languages.extend('ruby', {});
|
|
Prism.languages.insertBefore('erb', 'comment', {
|
|
'delimiter': {
|
|
pattern: /^<%=?|%>$/,
|
|
alias: 'punctuation'
|
|
}
|
|
});
|
|
|
|
Prism.hooks.add('before-tokenize', function(env) {
|
|
var erbPattern = /<%=?[\s\S]+?%>/g;
|
|
Prism.languages['markup-templating'].buildPlaceholders(env, 'erb', erbPattern);
|
|
});
|
|
|
|
Prism.hooks.add('after-tokenize', function(env) {
|
|
Prism.languages['markup-templating'].tokenizePlaceholders(env, 'erb');
|
|
});
|
|
|
|
}(Prism));
|