main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
524 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | (function (Prism) {
|
---|
| 2 |
|
---|
| 3 | Prism.languages.etlua = {
|
---|
| 4 | 'delimiter': {
|
---|
| 5 | pattern: /^<%[-=]?|-?%>$/,
|
---|
| 6 | alias: 'punctuation'
|
---|
| 7 | },
|
---|
| 8 | 'language-lua': {
|
---|
| 9 | pattern: /[\s\S]+/,
|
---|
| 10 | inside: Prism.languages.lua
|
---|
| 11 | }
|
---|
| 12 | };
|
---|
| 13 |
|
---|
| 14 | Prism.hooks.add('before-tokenize', function (env) {
|
---|
| 15 | var pattern = /<%[\s\S]+?%>/g;
|
---|
| 16 | Prism.languages['markup-templating'].buildPlaceholders(env, 'etlua', pattern);
|
---|
| 17 | });
|
---|
| 18 |
|
---|
| 19 | Prism.hooks.add('after-tokenize', function (env) {
|
---|
| 20 | Prism.languages['markup-templating'].tokenizePlaceholders(env, 'etlua');
|
---|
| 21 | });
|
---|
| 22 |
|
---|
| 23 | }(Prism));
|
---|
Note:
See
TracBrowser
for help on using the repository browser.