]> luflow.net public git repositories - flow-web.git/blob - static/highlight/es/languages/erb.js
Initial commit.
[flow-web.git] / static / highlight / es / languages / erb.js
1 /*! `erb` grammar compiled for Highlight.js 11.11.1 */
2 var hljsGrammar = (function () {
3 'use strict';
4
5 /*
6 Language: ERB (Embedded Ruby)
7 Requires: xml.js, ruby.js
8 Author: Lucas Mazza <lucastmazza@gmail.com>
9 Contributors: Kassio Borges <kassioborgesm@gmail.com>
10 Description: "Bridge" language defining fragments of Ruby in HTML within <% .. %>
11 Website: https://ruby-doc.org/stdlib-2.6.5/libdoc/erb/rdoc/ERB.html
12 Category: template
13 */
14
15 /** @type LanguageFn */
16 function erb(hljs) {
17 return {
18 name: 'ERB',
19 subLanguage: 'xml',
20 contains: [
21 hljs.COMMENT('<%#', '%>'),
22 {
23 begin: '<%[%=-]?',
24 end: '[%-]?%>',
25 subLanguage: 'ruby',
26 excludeBegin: true,
27 excludeEnd: true
28 }
29 ]
30 };
31 }
32
33 return erb;
34
35 })();
36 ;
37 export default hljsGrammar;