|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
/* PrismJS 1.28.0
|
|
|
|
|
/* PrismJS 1.29.0
|
|
|
|
|
https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript+bash+c+cpp+cmake+coffeescript+crystal+d+dart+diff+django+elixir+erlang+go+groovy+java+json+julia+kotlin+latex+lua+markup-templating+matlab+nginx+nim+nix+ocaml+perl+php+python+qml+r+jsx+ruby+rust+scss+scala+shell-session+sql+typescript+yaml+zig */
|
|
|
|
|
/// <reference lib="WebWorker"/>
|
|
|
|
|
|
|
|
|
@ -1317,7 +1317,10 @@ Prism.languages.markup = {
|
|
|
|
|
pattern: /^=/,
|
|
|
|
|
alias: 'attr-equals'
|
|
|
|
|
},
|
|
|
|
|
/"|'/
|
|
|
|
|
{
|
|
|
|
|
pattern: /^(\s*)["']|["']$/,
|
|
|
|
|
lookbehind: true
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
@ -1822,7 +1825,7 @@ Prism.languages.js = Prism.languages.javascript;
|
|
|
|
|
// Highlight variable names as variables in the left-hand part
|
|
|
|
|
// of assignments (“=” and “+=”).
|
|
|
|
|
'assign-left': {
|
|
|
|
|
pattern: /(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,
|
|
|
|
|
pattern: /(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,
|
|
|
|
|
inside: {
|
|
|
|
|
'environment': {
|
|
|
|
|
pattern: RegExp('(^|[\\s;|&]|[<>]\\()' + envVars),
|
|
|
|
@ -1833,6 +1836,12 @@ Prism.languages.js = Prism.languages.javascript;
|
|
|
|
|
alias: 'variable',
|
|
|
|
|
lookbehind: true
|
|
|
|
|
},
|
|
|
|
|
// Highlight parameter names as variables
|
|
|
|
|
'parameter': {
|
|
|
|
|
pattern: /(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,
|
|
|
|
|
alias: 'variable',
|
|
|
|
|
lookbehind: true
|
|
|
|
|
},
|
|
|
|
|
'string': [
|
|
|
|
|
// Support for Here-documents https://en.wikipedia.org/wiki/Here_document
|
|
|
|
|
{
|
|
|
|
@ -1880,7 +1889,7 @@ Prism.languages.js = Prism.languages.javascript;
|
|
|
|
|
},
|
|
|
|
|
'variable': insideString.variable,
|
|
|
|
|
'function': {
|
|
|
|
|
pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,
|
|
|
|
|
pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,
|
|
|
|
|
lookbehind: true
|
|
|
|
|
},
|
|
|
|
|
'keyword': {
|
|
|
|
@ -1927,6 +1936,7 @@ Prism.languages.js = Prism.languages.javascript;
|
|
|
|
|
'function-name',
|
|
|
|
|
'for-or-select',
|
|
|
|
|
'assign-left',
|
|
|
|
|
'parameter',
|
|
|
|
|
'string',
|
|
|
|
|
'environment',
|
|
|
|
|
'function',
|
|
|
|
@ -1943,6 +1953,7 @@ Prism.languages.js = Prism.languages.javascript;
|
|
|
|
|
inside[toBeCopied[i]] = Prism.languages.bash[toBeCopied[i]];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Prism.languages.sh = Prism.languages.bash;
|
|
|
|
|
Prism.languages.shell = Prism.languages.bash;
|
|
|
|
|
}(Prism));
|
|
|
|
|
|
|
|
|
@ -3214,7 +3225,8 @@ delete Prism.languages.go['class-name'];
|
|
|
|
|
'operator': {
|
|
|
|
|
pattern: /(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,
|
|
|
|
|
lookbehind: true
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
'constant': /\b[A-Z][A-Z_\d]+\b/
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
Prism.languages.insertBefore('java', 'string', {
|
|
|
|
@ -4752,7 +4764,7 @@ Prism.languages.scala = Prism.languages.extend('java', {
|
|
|
|
|
pattern: /("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,
|
|
|
|
|
greedy: true
|
|
|
|
|
},
|
|
|
|
|
'keyword': /<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,
|
|
|
|
|
'keyword': /<-|=>|\b(?:abstract|case|catch|class|def|derives|do|else|enum|extends|extension|final|finally|for|forSome|given|if|implicit|import|infix|inline|lazy|match|new|null|object|opaque|open|override|package|private|protected|return|sealed|self|super|this|throw|trait|transparent|try|type|using|val|var|while|with|yield)\b/,
|
|
|
|
|
'number': /\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,
|
|
|
|
|
'builtin': /\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,
|
|
|
|
|
'symbol': /'[^\d\s\\]\w*/
|
|
|
|
@ -4791,6 +4803,7 @@ Prism.languages.insertBefore('scala', 'triple-quoted-string', {
|
|
|
|
|
|
|
|
|
|
delete Prism.languages.scala['class-name'];
|
|
|
|
|
delete Prism.languages.scala['function'];
|
|
|
|
|
delete Prism.languages.scala['constant'];
|
|
|
|
|
|
|
|
|
|
(function (Prism) {
|
|
|
|
|
|
|
|
|
|