ceylon.min.js 1.3 KB

123456789101112131415
  1. /*! `ceylon` grammar compiled for Highlight.js 11.7.0 */
  2. (()=>{var e=(()=>{"use strict";return e=>{
  3. const a=["assembly","module","package","import","alias","class","interface","object","given","value","assign","void","function","new","of","extends","satisfies","abstracts","in","out","return","break","continue","throw","assert","dynamic","if","else","switch","case","for","while","try","catch","finally","then","let","this","outer","super","is","exists","nonempty"],s={
  4. className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:a,
  5. relevance:10},n=[{className:"string",begin:'"""',end:'"""',relevance:10},{
  6. className:"string",begin:'"',end:'"',contains:[s]},{className:"string",
  7. begin:"'",end:"'"},{className:"number",
  8. begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",
  9. relevance:0}];return s.contains=n,{name:"Ceylon",keywords:{
  10. keyword:a.concat(["shared","abstract","formal","default","actual","variable","late","native","deprecated","final","sealed","annotation","suppressWarnings","small"]),
  11. meta:["doc","by","license","see","throws","tagged"]},
  12. illegal:"\\$[^01]|#[^0-9a-fA-F]",
  13. contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),{
  14. className:"meta",begin:'@[a-z]\\w*(?::"[^"]*")?'}].concat(n)}}})()
  15. ;hljs.registerLanguage("ceylon",e)})();