✨ [hljs] Añade soporte a HighlightJS en PageTop
This commit is contained in:
parent
3fb871ff8e
commit
23d25bde8f
210 changed files with 5277 additions and 2 deletions
18
packages/pagetop-hljs/static/js/languages/elm.min.js
vendored
Normal file
18
packages/pagetop-hljs/static/js/languages/elm.min.js
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
/*! `elm` grammar compiled for Highlight.js 11.7.0 */
|
||||
(()=>{var e=(()=>{"use strict";return e=>{const n={
|
||||
variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},i={
|
||||
className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},s={begin:"\\(",end:"\\)",
|
||||
illegal:'"',contains:[{className:"type",
|
||||
begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},n]};return{name:"Elm",
|
||||
keywords:["let","in","if","then","else","case","of","where","module","import","exposing","type","alias","as","infix","infixl","infixr","port","effect","command","subscription"],
|
||||
contains:[{beginKeywords:"port effect module",end:"exposing",
|
||||
keywords:"port effect module where command subscription exposing",
|
||||
contains:[s,n],illegal:"\\W\\.|;"},{begin:"import",end:"$",
|
||||
keywords:"import as exposing",contains:[s,n],illegal:"\\W\\.|;"},{begin:"type",
|
||||
end:"$",keywords:"type alias",contains:[i,s,{begin:/\{/,end:/\}/,
|
||||
contains:s.contains},n]},{beginKeywords:"infix infixl infixr",end:"$",
|
||||
contains:[e.C_NUMBER_MODE,n]},{begin:"port",end:"$",keywords:"port",contains:[n]
|
||||
},{className:"string",begin:"'\\\\?.",end:"'",illegal:"."
|
||||
},e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,i,e.inherit(e.TITLE_MODE,{
|
||||
begin:"^[_a-z][\\w']*"}),n,{begin:"->|<-"}],illegal:/;/}}})()
|
||||
;hljs.registerLanguage("elm",e)})();
|
||||
Loading…
Add table
Add a link
Reference in a new issue