fix
This commit is contained in:
29
book/node_modules/highlight.js/es/languages/erb.js
generated
vendored
Normal file
29
book/node_modules/highlight.js/es/languages/erb.js
generated
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
/*
|
||||
Language: ERB (Embedded Ruby)
|
||||
Requires: xml.js, ruby.js
|
||||
Author: Lucas Mazza <lucastmazza@gmail.com>
|
||||
Contributors: Kassio Borges <kassioborgesm@gmail.com>
|
||||
Description: "Bridge" language defining fragments of Ruby in HTML within <% .. %>
|
||||
Website: https://ruby-doc.org/stdlib-2.6.5/libdoc/erb/rdoc/ERB.html
|
||||
Category: template
|
||||
*/
|
||||
|
||||
/** @type LanguageFn */
|
||||
function erb(hljs) {
|
||||
return {
|
||||
name: 'ERB',
|
||||
subLanguage: 'xml',
|
||||
contains: [
|
||||
hljs.COMMENT('<%#', '%>'),
|
||||
{
|
||||
begin: '<%[%=-]?',
|
||||
end: '[%-]?%>',
|
||||
subLanguage: 'ruby',
|
||||
excludeBegin: true,
|
||||
excludeEnd: true
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
export { erb as default };
|
Reference in New Issue
Block a user