Syntax Highlighting tool, Markdown guide, unread share badge, Open in menu
- Syntax Highlighting (/syntax): highlight.js tokens rendered with VS Code (Dark/Light Modern, One Dark Pro, Monokai, Dracula, GitHub) and Android Studio (Darcula, Dark, IntelliJ Light) colors; copy as rich text (VS Code clipboard HTML), download RTF, share. Format via Prettier/sql-formatter (lazy-loaded), the JSON printer, or built-in whitespace-only formatters for brace languages, Python and XML. - Markdown: Guide dialog, source next to rendered output, with Insert. - Pastes created by Share count as unread on the Pastebin nav badge. - Paste view: Open in menu built from registry opensPaste tools. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
f4232ef9b5
commit
dc2b12a3c6
37 changed files with 3704 additions and 27 deletions
29
app/static/vendor/hljs/LICENSE
vendored
Normal file
29
app/static/vendor/hljs/LICENSE
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
BSD 3-Clause License
|
||||
|
||||
Copyright (c) 2006, Ivan Sagalaev.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
* Neither the name of the copyright holder nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
27
app/static/vendor/hljs/dart.min.js
vendored
Normal file
27
app/static/vendor/hljs/dart.min.js
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
/*! `dart` grammar compiled for Highlight.js 11.12.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{const a=e.regex,n={
|
||||
className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},t={className:"subst",
|
||||
variants:[{begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"
|
||||
},i={className:"number",relevance:0,variants:[{
|
||||
match:/\b[0-9][0-9_]*(\.[0-9][0-9_]*)?([eE][+-]?[0-9][0-9_]*)?\b/},{
|
||||
match:/\b0[xX][0-9A-Fa-f][0-9A-Fa-f_]*\b/}]},r={className:"string",variants:[{
|
||||
begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",
|
||||
illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",
|
||||
contains:[e.BACKSLASH_ESCAPE,n,t]},{begin:'"""',end:'"""',
|
||||
contains:[e.BACKSLASH_ESCAPE,n,t]},{begin:"'",end:"'",illegal:"\\n",
|
||||
contains:[e.BACKSLASH_ESCAPE,n,t]},{begin:'"',end:'"',illegal:"\\n",
|
||||
contains:[e.BACKSLASH_ESCAPE,n,t]}]};t.contains=[i,r]
|
||||
;const s=["Comparable","DateTime","Duration","Function","Iterable","Iterator","List","Map","Match","Object","Pattern","RegExp","Set","Stopwatch","String","StringBuffer","StringSink","Symbol","Type","Uri","bool","double","int","num","Element","ElementList"],c=s.map(e=>e+"?"),l={
|
||||
keyword:["abstract","as","assert","async","await","base","break","case","catch","class","const","continue","covariant","default","deferred","do","dynamic","else","enum","export","extends","extension","external","factory","false","final","finally","for","Function","get","hide","if","implements","import","in","interface","is","late","library","mixin","new","null","on","operator","part","required","rethrow","return","sealed","set","show","static","super","switch","sync","this","throw","true","try","typedef","var","void","when","while","with","yield"],
|
||||
built_in:s.concat(c).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]),
|
||||
$pattern:/[A-Za-z][A-Za-z0-9_]*\??/},o={
|
||||
match:a.concat(/\b_?/,a.either(/(?:[A-Z]+[a-z0-9]+)+/,/(?:[A-Z]+[a-z0-9]+)+[A-Z]+/),/(?![A-Za-z0-9_])/),
|
||||
scope:"title.class"};return{name:"Dart",keywords:l,
|
||||
contains:[r,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0
|
||||
}),e.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:"markdown",begin:".",
|
||||
end:"$",relevance:0}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{
|
||||
className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,
|
||||
contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},o,{
|
||||
match:/\b(?!(?:assert|catch|for|if|switch|while)\b)[a-z_][A-Za-z0-9_]*(?=\()/,
|
||||
scope:"title.function"},i,{className:"meta",begin:"@[A-Za-z]+"}]}}})()
|
||||
;export default hljsGrammar;
|
||||
8
app/static/vendor/hljs/dockerfile.min.js
vendored
Normal file
8
app/static/vendor/hljs/dockerfile.min.js
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
/*! `dockerfile` grammar compiled for Highlight.js 11.12.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>({name:"Dockerfile",
|
||||
aliases:["docker"],case_insensitive:!0,
|
||||
keywords:["from","maintainer","expose","env","arg","user","onbuild","stopsignal"],
|
||||
contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{
|
||||
beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",
|
||||
starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"</"})})()
|
||||
;export default hljsGrammar;
|
||||
28
app/static/vendor/hljs/groovy.min.js
vendored
Normal file
28
app/static/vendor/hljs/groovy.min.js
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
/*! `groovy` grammar compiled for Highlight.js 11.12.0 */
|
||||
var hljsGrammar=(()=>{"use strict"
|
||||
;var e="[0-9](_*[0-9])*",a=`\\.(${e})`,n="[0-9a-fA-F](_*[0-9a-fA-F])*",t={
|
||||
className:"number",variants:[{
|
||||
begin:`(\\b(${e})((${a})|\\.)?|(${a}))[eE][+-]?(${e})[fFdD]?\\b`},{
|
||||
begin:`\\b(${e})((${a})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${a})[fFdD]?\\b`
|
||||
},{begin:`\\b(${e})[fFdD]\\b`},{
|
||||
begin:`\\b0[xX]((${n})\\.?|(${n})?\\.(${n}))[pP][+-]?(${e})[fFdD]?\\b`},{
|
||||
begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${n})[lL]?\\b`},{
|
||||
begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],
|
||||
relevance:0};function r(e,a={}){return a.variants=e,a}return e=>{
|
||||
const a=e.regex,n="[A-Za-z0-9_$]+",i=r([e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/\\*\\*","\\*/",{
|
||||
relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",
|
||||
begin:"@[A-Za-z]+"}]})]),s={className:"regexp",begin:/~?\/[^\/\n]+\//,
|
||||
contains:[e.BACKSLASH_ESCAPE]},l=t,b=r([{begin:/"""/,end:/"""/},{begin:/'''/,
|
||||
end:/'''/},{begin:"\\$/",end:"/\\$",relevance:10
|
||||
},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE],{className:"string"}),c={
|
||||
match:[/(class|interface|trait|enum|record|extends|implements)/,/\s+/,e.UNDERSCORE_IDENT_RE],
|
||||
scope:{1:"keyword",3:"title.class"}};return{name:"Groovy",keywords:{
|
||||
"variable.language":"this super",literal:"true false null",
|
||||
type:["byte","short","char","int","long","boolean","float","double","void"],
|
||||
keyword:["def","as","in","assert","trait","abstract","static","volatile","transient","public","private","protected","synchronized","final","class","interface","enum","if","else","for","while","switch","case","break","default","continue","throw","throws","try","catch","finally","implements","extends","new","import","package","return","instanceof","var"]
|
||||
},contains:[e.SHEBANG({binary:"groovy",relevance:10}),i,b,s,l,c,{
|
||||
className:"meta",begin:"@[A-Za-z]+",relevance:0},{className:"attr",
|
||||
begin:n+"[ \t]*:",relevance:0},{begin:/\?/,end:/:/,relevance:0,
|
||||
contains:[i,b,s,l,"self"]},{className:"symbol",
|
||||
begin:"^[ \t]*"+a.lookahead(n+":"),excludeBegin:!0,end:n+":",relevance:0}],
|
||||
illegal:/#|<\//}}})();export default hljsGrammar;
|
||||
1260
app/static/vendor/hljs/highlight.min.js
vendored
Normal file
1260
app/static/vendor/hljs/highlight.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
21
app/static/vendor/hljs/nginx.min.js
vendored
Normal file
21
app/static/vendor/hljs/nginx.min.js
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
/*! `nginx` grammar compiled for Highlight.js 11.12.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{const n=e.regex,a={
|
||||
className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{
|
||||
begin:n.concat(/[$@]/,e.UNDERSCORE_IDENT_RE)}]},s={endsWithParent:!0,keywords:{
|
||||
$pattern:/[a-z_]{2,}|\/dev\/poll/,
|
||||
literal:["on","off","yes","no","true","false","none","blocked","debug","info","notice","warn","error","crit","select","break","last","permanent","redirect","kqueue","rtsig","epoll","poll","/dev/poll"]
|
||||
},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",
|
||||
contains:[e.BACKSLASH_ESCAPE,a],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/
|
||||
}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[a]
|
||||
},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,a],variants:[{begin:"\\s\\^",
|
||||
end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{
|
||||
begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",
|
||||
begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{
|
||||
className:"number",begin:"\\b\\d+[kKmMgGdshdwy]?\\b",relevance:0},a]};return{
|
||||
name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{
|
||||
beginKeywords:"upstream location",end:/;|\{/,contains:s.contains,keywords:{
|
||||
section:"upstream location"}},{className:"section",
|
||||
begin:n.concat(e.UNDERSCORE_IDENT_RE+n.lookahead(/\s+\{/)),relevance:0},{
|
||||
begin:n.lookahead(e.UNDERSCORE_IDENT_RE+"\\s"),end:";|\\{",contains:[{
|
||||
className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:s}],relevance:0}],
|
||||
illegal:"[^\\s\\}\\{]"}}})();export default hljsGrammar;
|
||||
40
app/static/vendor/hljs/powershell.min.js
vendored
Normal file
40
app/static/vendor/hljs/powershell.min.js
vendored
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
/*! `powershell` grammar compiled for Highlight.js 11.12.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{const n={
|
||||
$pattern:/-?[A-z\.\-]+\b/,
|
||||
keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",
|
||||
built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"
|
||||
},s={begin:"`[\\s\\S]",relevance:0},i={className:"variable",variants:[{
|
||||
begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]
|
||||
},a={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],
|
||||
contains:[s,i,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},t={
|
||||
className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]
|
||||
},r=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,
|
||||
end:/#>/}],contains:[{className:"doctag",variants:[{
|
||||
begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/
|
||||
},{
|
||||
begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/
|
||||
}]}]}),c={className:"class",beginKeywords:"class enum",end:/\s*[{]/,
|
||||
excludeEnd:!0,relevance:0,contains:[e.TITLE_MODE]},l={className:"function",
|
||||
begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,
|
||||
contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",
|
||||
begin:/\w[\w\d]*((-)[\w\d]+)*/,relevance:0},{begin:/\(/,end:/\)/,
|
||||
className:"params",relevance:0,contains:[i]}]},o={begin:/using\s/,end:/$/,
|
||||
returnBegin:!0,contains:[a,t,{className:"keyword",
|
||||
begin:/(using|assembly|command|module|namespace|type)/}]},p={
|
||||
className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,
|
||||
relevance:0,contains:[{className:"keyword",
|
||||
begin:"(".concat(n.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,
|
||||
relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]
|
||||
},m=[p,r,s,e.NUMBER_MODE,a,t,{className:"built_in",variants:[{
|
||||
begin:"(Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where)+(-)[\\w\\d]+"
|
||||
}]},i,{className:"literal",begin:/\$(null|true|false)\b/},{
|
||||
className:"selector-tag",begin:/@\B/,relevance:0}],g={begin:/\[/,end:/\]/,
|
||||
excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",m,{
|
||||
begin:"(string|char|byte|int|long|bool|decimal|single|double|DateTime|xml|array|hashtable|void)",
|
||||
className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,
|
||||
relevance:0})};return p.contains.unshift(g),{name:"PowerShell",
|
||||
aliases:["pwsh","ps","ps1"],case_insensitive:!0,keywords:n,
|
||||
contains:m.concat(c,l,o,{variants:[{className:"operator",
|
||||
begin:"(-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor)\\b"
|
||||
},{className:"literal",begin:/(-){1,2}[\w\d-]+/,relevance:0}]},g)}}})()
|
||||
;export default hljsGrammar;
|
||||
11
app/static/vendor/hljs/protobuf.min.js
vendored
Normal file
11
app/static/vendor/hljs/protobuf.min.js
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*! `protobuf` grammar compiled for Highlight.js 11.12.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{const r={
|
||||
match:[/(message|enum|service)\s+/,e.IDENT_RE],scope:{1:"keyword",
|
||||
2:"title.class"}};return{name:"Protocol Buffers",aliases:["proto"],keywords:{
|
||||
keyword:["package","import","option","optional","required","repeated","group","oneof"],
|
||||
type:["double","float","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","bool","string","bytes"],
|
||||
literal:["true","false"]},
|
||||
contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,{
|
||||
className:"function",beginKeywords:"rpc",end:/[{;]/,excludeEnd:!0,
|
||||
keywords:"rpc returns"},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}})()
|
||||
;export default hljsGrammar;
|
||||
28
app/static/vendor/hljs/scala.min.js
vendored
Normal file
28
app/static/vendor/hljs/scala.min.js
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
/*! `scala` grammar compiled for Highlight.js 11.12.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{const n=e.regex,a={
|
||||
className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:/\$\{/,end:/\}/}]
|
||||
},s={className:"string",variants:[{begin:'"""',end:'"""'},{begin:'"',end:'"',
|
||||
illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:'[a-z]+"',end:'"',
|
||||
illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,a]},{className:"string",
|
||||
begin:'[a-z]+"""',end:'"""',contains:[a],relevance:10}]},i={className:"type",
|
||||
begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},t={className:"title",
|
||||
begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,
|
||||
relevance:0},r={className:"class",beginKeywords:"class object trait type",
|
||||
end:/[:={\[\n;]/,excludeEnd:!0,
|
||||
contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{
|
||||
beginKeywords:"extends with",relevance:10},{begin:/\[/,end:/\]/,excludeBegin:!0,
|
||||
excludeEnd:!0,relevance:0,
|
||||
contains:[i,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"params",
|
||||
begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,
|
||||
contains:[i,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},t]},l={
|
||||
className:"function",beginKeywords:"def",end:n.lookahead(/[:={\[(\n;]/),
|
||||
contains:[t]};return{name:"Scala",keywords:{literal:"true false null",
|
||||
keyword:"type yield lazy override def with val var sealed abstract private trait object if then forSome for while do throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit export enum given transparent"
|
||||
},contains:[{begin:["//>",/\s+/,/using/,/\s+/,/\S+/],beginScope:{1:"comment",
|
||||
3:"keyword",5:"type"},end:/$/,contains:[{className:"string",begin:/\S+/}]
|
||||
},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s,i,l,r,e.C_NUMBER_MODE,{
|
||||
begin:[/^\s*/,"extension",/\s+(?=[[(])/],beginScope:{2:"keyword"}},{
|
||||
begin:[/^\s*/,/end/,/\s+/,/(extension\b)?/],beginScope:{2:"keyword",4:"keyword"}
|
||||
},{match:/\.inline\b/},{begin:/\binline(?=\s)/,keywords:"inline"},{
|
||||
begin:[/\(\s*/,/using/,/\s+(?!\))/],beginScope:{2:"keyword"}},{className:"meta",
|
||||
begin:"@[A-Za-z]+"}]}}})();export default hljsGrammar;
|
||||
Loading…
Add table
Add a link
Reference in a new issue