highlightjs-shexc
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -1,1 +0,1 @@ | ||
var module=module||{};function hljsDefineShExC(e){const n="[0-9a-fA-F]",s="\\\\(?:u"+n+"{4}|U"+n+"{8})",a='<([^<>"{}|^`\\\\]|'+s+")*>",i="[a-zA-Z]",t=[i,"_"].join("|"),r=[t,"-","[0-9]"].join("|"),c="("+(i+"(("+r+"|\\.)*"+r+")?")+")?:",o="\\\\[_~.!$&'()*+,;=/?#@%-]",d="%"+n+n,l=[d,o].join("|"),g="("+[t,":","[0-9]",l].join("|")+")(("+[r,"\\.",":",l].join("|")+"))*",b=c+g+"|"+c,m="("+[b,a].join("|")+")",u={className:"meta-keyword",begin:d},N={className:"meta-keyword",begin:s},E={className:"symbol",begin:/</,end:/>/,contains:[u,N]},O={begin:b,returnBegin:!0,contains:[{className:"type",begin:c},{className:"variable",begin:g,endsWithParent:!0,contains:[{className:"meta-keyword",begin:o}]}]},_=/\B\b/,M={beginKeywords:"prefix",end:_,returnBegin:!0,contains:[{className:"type",begin:c},Object.assign({endsParent:!0},E)]},j={beginKeywords:"base",end:_,returnBegin:!0,contains:[Object.assign({endsParent:!0},E)]},v={beginKeywords:"import",end:_,returnBegin:!0,contains:[Object.assign({endsParent:!0},E)]},y={begin:/{/,end:/}/,relevance:0},x=[e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"title",begin:m,contains:[u,N],relevance:0},{className:"name",begin:"@"+m,contains:[u,N],relevance:10},{beginKeywords:"extra closed",end:/{/,returnEnd:!0,contains:[E,O],relevance:10},{className:"regexp",begin:/\/([^\\/]|\\.)*\//,contains:[e.REGEXP_MODE]},y],C={begin:m,end:_,returnBegin:!0,keywords:"and or not closed extends restricts",contains:x,relevance:0},h={begin:m,end:_,returnBegin:!0,endsWithParent:!0,keywords:"and or not closed extends restricts",contains:[E,O].concat(x),relevance:0},w={className:"name",begin:"$"+m,contains:[u,N],relevance:10},B={className:"name",begin:"&"+m,contains:[u,N],relevance:10};return y.contains=[w,B,h],{case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,M,j,v,C],relevance:10}}module.exports=function(e){e.registerLanguage("shexc",hljsDefineShExC)},module.exports.definer=hljsDefineShExC; | ||
hljs.registerLanguage("shexc",function(){var e=e||{};function n(e){const n="[0-9a-fA-F]",s="\\\\(?:u"+n+"{4}|U"+n+"{8})",a='<([^<>"{}|^`\\\\]|'+s+")*>",i="[a-zA-Z]",t=[i,"_"].join("|"),r=[t,"-|[0-9]"].join("|"),c="("+i+"(("+r+"|\\.)*"+r+")?)?:",o="\\\\[_~.!$&'()*+,;=/?#@%-]",g="%"+n+n,d=[g,o].join("|"),l="("+[t,":|[0-9]",d].join("|")+")(("+[r,"\\.|:",d].join("|")+"))*",b=c+l+"|"+c,m="("+[b,a].join("|")+")",N={className:"meta-keyword",begin:g},u={className:"meta-keyword",begin:s},O={className:"symbol",begin:/</,end:/>/,contains:[N,u]},_={begin:b,returnBegin:!0,contains:[{className:"type",begin:c},{className:"variable",begin:l,endsWithParent:!0,contains:[{className:"meta-keyword",begin:o}]}]},M=/\B\b/,v={beginKeywords:"prefix",end:M,returnBegin:!0,contains:[{className:"type",begin:c},Object.assign({endsParent:!0},O)]},y={beginKeywords:"base",end:M,returnBegin:!0,contains:[Object.assign({endsParent:!0},O)]},E={beginKeywords:"import",end:M,returnBegin:!0,contains:[Object.assign({endsParent:!0},O)]},x={begin:/{/,end:/}/,relevance:0},j=[e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"title",begin:m,contains:[N,u],relevance:0},{className:"name",begin:"@"+m,contains:[N,u],relevance:10},{beginKeywords:"extra closed",end:/{/,returnEnd:!0,contains:[O,_],relevance:10},{className:"regexp",begin:/\/([^\\/]|\\.)*\//,contains:[e.REGEXP_MODE]},x],p={begin:m,end:M,returnBegin:!0,keywords:"and or not closed extends restricts",contains:j,relevance:0},w={begin:m,end:M,returnBegin:!0,endsWithParent:!0,keywords:"and or not closed extends restricts",contains:[O,_].concat(j),relevance:0},B={className:"name",begin:"$"+m,contains:[N,u],relevance:10},C={className:"name",begin:"&"+m,contains:[N,u],relevance:10};return x.contains=[B,C,w],{case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,v,y,E,p],relevance:10}}return e.exports=function(e){e.registerLanguage("shexc",n)},e.exports.definer=n,e.exports.definer||e.exports}()); |
{ | ||
"name": "highlightjs-shexc", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Shape Expressions Compact Syntax (ShExC) syntax highlighting plugin for highlight.js", | ||
@@ -5,0 +5,0 @@ "main": "src/shexc.js", |
Sorry, the diff of this file is not supported yet
13200
235