]>
luflow.net public git repositories - flow-web.git/blob - static/highlight/languages/haml.js
1 /*! `haml` grammar compiled for Highlight.js 11.11.1 */
3 var hljsGrammar
= (function () {
9 Author: Dan Allen <dan.j.allen@gmail.com>
10 Website: http://haml.info
14 // TODO support filter tags like :javascript, support inline HTML
18 case_insensitive: true,
22 begin: '^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$',
25 // FIXME these comments should be allowed to span indented lines
27 '^\\s*(!=#|=#|-#|/).*$',
32 begin: '^\\s*(-|=|!=)(?!#)',
43 className: 'selector-tag',
47 className: 'selector-id',
51 className: 'selector-class',
68 hljs
.APOS_STRING_MODE
,
69 hljs
.QUOTE_STRING_MODE
,
94 hljs
.APOS_STRING_MODE
,
95 hljs
.QUOTE_STRING_MODE
,
106 { begin: '^\\s*[=~]\\s*' },
122 hljs
.registerLanguage('haml', hljsGrammar
);