(function (Prism) { Prism.languages.ejs = { delimiter: { pattern: /^<%[-_=]?|[-_]?%>$/, alias: 'punctuation', }, comment: /^#[\s\S]*/, 'language-javascript': { pattern: /[\s\S]+/, inside: Prism.languages.javascript, }, }; Prism.hooks.add('before-tokenize', function (env) { var ejsPattern = /<%(?!%)[\s\S]+?%>/g; Prism.languages['markup-templating'].buildPlaceholders( env, 'ejs', ejsPattern ); }); Prism.hooks.add('after-tokenize', function (env) { Prism.languages['markup-templating'].tokenizePlaceholders(env, 'ejs'); }); Prism.languages.eta = Prism.languages.ejs; })(Prism); der'> cgit logo index : www.armandphilippot.com
The frontend of my personal website.Armand Philippot
summaryrefslogtreecommitdiffstats
path: root/public/prism/prism-erlang.min.js
blob: c670dd511cf6361d79c3e3ccfafe6ec49364d476 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25