![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /var/www/html/vendor/highlight/languages/ |
Upload File : |
/*! `haskell` grammar compiled for Highlight.js 11.7.0 */ (()=>{var e=(()=>{"use strict";return e=>{const n={ variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},a={ className:"meta",begin:/\{-#/,end:/#-\}/},i={className:"meta",begin:"^#",end:"$" },s={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},l={begin:"\\(", end:"\\)",illegal:'"',contains:[a,i,{className:"type", begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TITLE_MODE,{ begin:"[_a-z][\\w']*"}),n]},t="([0-9a-fA-F]_*)+",c={className:"number", relevance:0,variants:[{ match:"\\b(([0-9]_*)+)(\\.(([0-9]_*)+))?([eE][+-]?(([0-9]_*)+))?\\b"},{ match:`\\b0[xX]_*(${t})(\\.(${t}))?([pP][+-]?(([0-9]_*)+))?\\b`},{ match:"\\b0[oO](([0-7]_*)+)\\b"},{match:"\\b0[bB](([01]_*)+)\\b"}]};return{ name:"Haskell",aliases:["hs"], keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec", contains:[{beginKeywords:"module",end:"where",keywords:"module where", contains:[l,n],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$", keywords:"import qualified as hiding",contains:[l,n],illegal:"\\W\\.|;"},{ className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where", keywords:"class family instance where",contains:[s,l,n]},{className:"class", begin:"\\b(data|(new)?type)\\b",end:"$", keywords:"data family type newtype deriving",contains:[a,s,l,{begin:/\{/, end:/\}/,contains:l.contains},n]},{beginKeywords:"default",end:"$", contains:[s,l,n]},{beginKeywords:"infix infixl infixr",end:"$", contains:[e.C_NUMBER_MODE,n]},{begin:"\\bforeign\\b",end:"$", keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe", contains:[s,e.QUOTE_STRING_MODE,n]},{className:"meta", begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$" },a,i,e.QUOTE_STRING_MODE,c,s,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*" }),n,{begin:"->|<-"}]}}})();hljs.registerLanguage("haskell",e)})();