summaryrefslogtreecommitdiff
path: root/live/static/hl/languages/haml.min.js
blob: 2c6d4e268a9f3506505b89c67db5d03f79f68a93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
hljs.registerLanguage("haml",(()=>{"use strict";return e=>({name:"HAML",
case_insensitive:!0,contains:[{className:"meta",
begin:"^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$",
relevance:10},e.COMMENT("^\\s*(!=#|=#|-#|/).*$",!1,{relevance:0}),{
begin:"^\\s*(-|=|!=)(?!#)",starts:{end:"\\n",subLanguage:"ruby"}},{
className:"tag",begin:"^\\s*%",contains:[{className:"selector-tag",begin:"\\w+"
},{className:"selector-id",begin:"#[\\w-]+"},{className:"selector-class",
begin:"\\.[\\w-]+"},{begin:/\{\s*/,end:/\s*\}/,contains:[{begin:":\\w+\\s*=>",
end:",\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",
begin:":\\w+"},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0
}]}]},{begin:"\\(\\s*",end:"\\s*\\)",excludeEnd:!0,contains:[{begin:"\\w+\\s*=",
end:"\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",
begin:"\\w+",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",
relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:/#\{/,starts:{end:/\}/,
subLanguage:"ruby"}}]})})());