Socket
Socket
Sign inDemoInstall

highlight.js

Package Overview
Dependencies
0
Maintainers
4
Versions
100
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 11.5.1 to 11.6.0

scss/panda-syntax-dark.scss

3

es/languages/csharp.js

@@ -5,3 +5,3 @@ /*

Contributor: Nicolas LLOBERA <nllobera@gmail.com>, Pieter Vantorre <pietervantorre@gmail.com>, David Pine <david.pine@microsoft.com>
Website: https://docs.microsoft.com/en-us/dotnet/csharp/
Website: https://docs.microsoft.com/dotnet/csharp/
Category: common

@@ -97,2 +97,3 @@ */

'return',
'scoped',
'sealed',

@@ -99,0 +100,0 @@ 'sizeof',

@@ -684,2 +684,3 @@ const MODES = (hljs) => {

contains: [
...STRINGS,
{

@@ -686,0 +687,0 @@ className: "string",

/*
Language: graphql
Category: scripting, protocols, web
Language: GraphQL
Author: John Foster (GH jf990), and others
Description: Highlight GraphQL queries with highlight.js.
Description: GraphQL is a query language for APIs
Category: web, common
*/

@@ -7,0 +7,0 @@

@@ -223,3 +223,3 @@ // https://docs.oracle.com/javase/specs/jls/se15/html/jls-3.html#jls-3.10

/\s+/,
/=/
/=(?!=)/
],

@@ -226,0 +226,0 @@ className: {

@@ -226,3 +226,3 @@ const IDENT_RE = '[A-Za-z$_][0-9A-Za-z$_]*';

let m;
const afterMatch = match.input.substr(afterMatchIndex);
const afterMatch = match.input.substring(afterMatchIndex);
// NOTE: This is ugh, but added specifically for https://github.com/highlightjs/highlight.js/issues/3276

@@ -229,0 +229,0 @@ if ((m = afterMatch.match(/^\s+extends\s+/))) {

@@ -20,15 +20,22 @@ /*

};
// normally we would rely on `keywords` for this but using a mode here allows us
// to use the very tight `illegal: \S` rule later to flag any other character
// as illegal indicating that despite looking like JSON we do not truly have
// JSON and thus improve false-positively greatly since JSON will try and claim
// all sorts of JSON looking stuff
const LITERALS = { beginKeywords: [
const LITERALS = [
"true",
"false",
"null"
].join(" ") };
];
// NOTE: normally we would rely on `keywords` for this but using a mode here allows us
// - to use the very tight `illegal: \S` rule later to flag any other character
// - as illegal indicating that despite looking like JSON we do not truly have
// - JSON and thus improve false-positively greatly since JSON will try and claim
// - all sorts of JSON looking stuff
const LITERALS_MODE = {
scope: "literal",
beginKeywords: LITERALS.join(" "),
};
return {
name: 'JSON',
keywords:{
literal: LITERALS,
},
contains: [

@@ -38,3 +45,3 @@ ATTRIBUTE,

hljs.QUOTE_STRING_MODE,
LITERALS,
LITERALS_MODE,
hljs.C_NUMBER_MODE,

@@ -41,0 +48,0 @@ hljs.C_LINE_COMMENT_MODE,

@@ -128,3 +128,6 @@ // https://docs.oracle.com/javase/specs/jls/se15/html/jls-3.html#jls-3.10

end: /\)/,
contains: [ hljs.inherit(STRING, { className: 'string' }) ]
contains: [
hljs.inherit(STRING, { className: 'string' }),
"self"
]
}

@@ -237,4 +240,11 @@ ]

{
className: 'class',
beginKeywords: 'class interface trait', // remove 'trait' when removed from KEYWORDS
begin: [
/class|interface|trait/,
/\s+/,
hljs.UNDERSCORE_IDENT_RE
],
beginScope: {
3: "title.class"
},
keywords: 'class interface trait',
end: /[:\{(]|$/,

@@ -257,3 +267,3 @@ excludeEnd: true,

begin: /[,:]\s*/,
end: /[<\(,]|$/,
end: /[<\(,){\s]|$/,
excludeBegin: true,

@@ -260,0 +270,0 @@ returnEnd: true

@@ -684,3 +684,5 @@ const MODES = (hljs) => {

},
modes.IMPORTANT
modes.IMPORTANT,
{ beginKeywords: 'and not' },
modes.FUNCTION_DISPATCH
);

@@ -781,2 +783,3 @@

IDENT_MODE('variable', '@\\{' + IDENT_RE + '\\}'), // otherwise it’s identified as tag
{

@@ -824,3 +827,5 @@ begin: '\\b(' + TAGS.join('|') + ')\\b',

RULE_MODE,
SELECTOR_MODE
SELECTOR_MODE,
MIXIN_GUARD_MODE,
modes.FUNCTION_DISPATCH
);

@@ -827,0 +832,0 @@

@@ -18,2 +18,3 @@ /*

'break',
'case',
'class',

@@ -35,2 +36,3 @@ 'continue',

'lambda',
'match',
'nonlocal|10',

@@ -37,0 +39,0 @@ 'not',

@@ -130,3 +130,3 @@ /*

"format_args!",
"include_bin!",
"include_bytes!",
"include_str!",

@@ -292,3 +292,4 @@ "line!",

keyword: "Self",
built_in: BUILTINS
built_in: BUILTINS,
type: TYPES
}

@@ -295,0 +296,0 @@ },

@@ -122,16 +122,14 @@ /*

const END = [
{
begin: [
/^\s*/, // Is first token on the line
/end/,
/\s+/,
/(extension\b)?/, // `extension` is the only marker that follows an `end` that cannot be captured by another rule.
],
beginScope: {
2: "keyword",
4: "keyword",
}
const END = {
begin: [
/^\s*/, // Is first token on the line
/end/,
/\s+/,
/(extension\b)?/, // `extension` is the only marker that follows an `end` that cannot be captured by another rule.
],
beginScope: {
2: "keyword",
4: "keyword",
}
];
};

@@ -161,3 +159,3 @@ // TODO: use negative look-behind in future

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'
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'
},

@@ -164,0 +162,0 @@ contains: [

@@ -675,2 +675,3 @@ const MODES = (hljs) => {

end: /[;}{]/,
relevance: 0,
contains: [

@@ -683,3 +684,4 @@ modes.BLOCK_COMMENT,

hljs.APOS_STRING_MODE,
modes.IMPORTANT
modes.IMPORTANT,
modes.FUNCTION_DISPATCH
]

@@ -686,0 +688,0 @@ },

@@ -775,3 +775,4 @@ const MODES = (hljs) => {

hljs.C_BLOCK_COMMENT_MODE,
modes.IMPORTANT
modes.IMPORTANT,
modes.FUNCTION_DISPATCH
],

@@ -778,0 +779,0 @@ illegal: /\./,

@@ -97,2 +97,3 @@ /**

'actor',
'any', // contextual
'associatedtype',

@@ -114,2 +115,3 @@ 'async',

'didSet', // contextual
'distributed',
'do',

@@ -116,0 +118,0 @@ 'dynamic', // contextual

@@ -226,3 +226,3 @@ const IDENT_RE = '[A-Za-z$_][0-9A-Za-z$_]*';

let m;
const afterMatch = match.input.substr(afterMatchIndex);
const afterMatch = match.input.substring(afterMatchIndex);
// NOTE: This is ugh, but added specifically for https://github.com/highlightjs/highlight.js/issues/3276

@@ -229,0 +229,0 @@ if ((m = afterMatch.match(/^\s+extends\s+/))) {

@@ -5,3 +5,3 @@ /*

Description: Wasm is designed as a portable compilation target for programming languages, enabling deployment on the web for client and server applications.
Category: web
Category: web, common
Audit: 2020

@@ -8,0 +8,0 @@ */

@@ -11,5 +11,11 @@ /*

const regex = hljs.regex;
// Element names can contain letters, digits, hyphens, underscores, and periods
const TAG_NAME_RE = regex.concat(/[A-Z_]/, regex.optional(/[A-Z0-9_.-]*:/), /[A-Z0-9_.-]*/);
const XML_IDENT_RE = /[A-Za-z0-9._:-]+/;
// XML names can have the following additional letters: https://www.w3.org/TR/xml/#NT-NameChar
// OTHER_NAME_CHARS = /[:\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]/;
// Element names start with NAME_START_CHAR followed by optional other Unicode letters, ASCII digits, hyphens, underscores, and periods
// const TAG_NAME_RE = regex.concat(/[A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, regex.optional(/[A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*:/), /[A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*/);;
// const XML_IDENT_RE = /[A-Z_a-z:\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]+/;
// const TAG_NAME_RE = regex.concat(/[A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, regex.optional(/[A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*:/), /[A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*/);
// however, to cater for performance and more Unicode support rely simply on the Unicode letter class
const TAG_NAME_RE = regex.concat(/[\p{L}_]/u, regex.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u);
const XML_IDENT_RE = /[\p{L}0-9._:-]+/u;
const XML_ENTITIES = {

@@ -85,2 +91,3 @@ className: 'symbol',

case_insensitive: true,
unicodeRegex: true,
contains: [

@@ -87,0 +94,0 @@ {

@@ -13,2 +13,3 @@ var hljs = require('./core');

hljs.registerLanguage('go', require('./languages/go'));
hljs.registerLanguage('graphql', require('./languages/graphql'));
hljs.registerLanguage('ini', require('./languages/ini'));

@@ -38,2 +39,3 @@ hljs.registerLanguage('java', require('./languages/java'));

hljs.registerLanguage('vbnet', require('./languages/vbnet'));
hljs.registerLanguage('wasm', require('./languages/wasm'));

@@ -40,0 +42,0 @@ hljs.HighlightJS = hljs

@@ -5,3 +5,3 @@ /*

Contributor: Nicolas LLOBERA <nllobera@gmail.com>, Pieter Vantorre <pietervantorre@gmail.com>, David Pine <david.pine@microsoft.com>
Website: https://docs.microsoft.com/en-us/dotnet/csharp/
Website: https://docs.microsoft.com/dotnet/csharp/
Category: common

@@ -97,2 +97,3 @@ */

'return',
'scoped',
'sealed',

@@ -99,0 +100,0 @@ 'sizeof',

@@ -684,2 +684,3 @@ const MODES = (hljs) => {

contains: [
...STRINGS,
{

@@ -686,0 +687,0 @@ className: "string",

/*
Language: graphql
Category: scripting, protocols, web
Language: GraphQL
Author: John Foster (GH jf990), and others
Description: Highlight GraphQL queries with highlight.js.
Description: GraphQL is a query language for APIs
Category: web, common
*/

@@ -7,0 +7,0 @@

@@ -223,3 +223,3 @@ // https://docs.oracle.com/javase/specs/jls/se15/html/jls-3.html#jls-3.10

/\s+/,
/=/
/=(?!=)/
],

@@ -226,0 +226,0 @@ className: {

@@ -226,3 +226,3 @@ const IDENT_RE = '[A-Za-z$_][0-9A-Za-z$_]*';

let m;
const afterMatch = match.input.substr(afterMatchIndex);
const afterMatch = match.input.substring(afterMatchIndex);
// NOTE: This is ugh, but added specifically for https://github.com/highlightjs/highlight.js/issues/3276

@@ -229,0 +229,0 @@ if ((m = afterMatch.match(/^\s+extends\s+/))) {

@@ -20,15 +20,22 @@ /*

};
// normally we would rely on `keywords` for this but using a mode here allows us
// to use the very tight `illegal: \S` rule later to flag any other character
// as illegal indicating that despite looking like JSON we do not truly have
// JSON and thus improve false-positively greatly since JSON will try and claim
// all sorts of JSON looking stuff
const LITERALS = { beginKeywords: [
const LITERALS = [
"true",
"false",
"null"
].join(" ") };
];
// NOTE: normally we would rely on `keywords` for this but using a mode here allows us
// - to use the very tight `illegal: \S` rule later to flag any other character
// - as illegal indicating that despite looking like JSON we do not truly have
// - JSON and thus improve false-positively greatly since JSON will try and claim
// - all sorts of JSON looking stuff
const LITERALS_MODE = {
scope: "literal",
beginKeywords: LITERALS.join(" "),
};
return {
name: 'JSON',
keywords:{
literal: LITERALS,
},
contains: [

@@ -38,3 +45,3 @@ ATTRIBUTE,

hljs.QUOTE_STRING_MODE,
LITERALS,
LITERALS_MODE,
hljs.C_NUMBER_MODE,

@@ -41,0 +48,0 @@ hljs.C_LINE_COMMENT_MODE,

@@ -128,3 +128,6 @@ // https://docs.oracle.com/javase/specs/jls/se15/html/jls-3.html#jls-3.10

end: /\)/,
contains: [ hljs.inherit(STRING, { className: 'string' }) ]
contains: [
hljs.inherit(STRING, { className: 'string' }),
"self"
]
}

@@ -237,4 +240,11 @@ ]

{
className: 'class',
beginKeywords: 'class interface trait', // remove 'trait' when removed from KEYWORDS
begin: [
/class|interface|trait/,
/\s+/,
hljs.UNDERSCORE_IDENT_RE
],
beginScope: {
3: "title.class"
},
keywords: 'class interface trait',
end: /[:\{(]|$/,

@@ -257,3 +267,3 @@ excludeEnd: true,

begin: /[,:]\s*/,
end: /[<\(,]|$/,
end: /[<\(,){\s]|$/,
excludeBegin: true,

@@ -260,0 +270,0 @@ returnEnd: true

@@ -684,3 +684,5 @@ const MODES = (hljs) => {

},
modes.IMPORTANT
modes.IMPORTANT,
{ beginKeywords: 'and not' },
modes.FUNCTION_DISPATCH
);

@@ -781,2 +783,3 @@

IDENT_MODE('variable', '@\\{' + IDENT_RE + '\\}'), // otherwise it’s identified as tag
{

@@ -824,3 +827,5 @@ begin: '\\b(' + TAGS.join('|') + ')\\b',

RULE_MODE,
SELECTOR_MODE
SELECTOR_MODE,
MIXIN_GUARD_MODE,
modes.FUNCTION_DISPATCH
);

@@ -827,0 +832,0 @@

@@ -18,2 +18,3 @@ /*

'break',
'case',
'class',

@@ -35,2 +36,3 @@ 'continue',

'lambda',
'match',
'nonlocal|10',

@@ -37,0 +39,0 @@ 'not',

@@ -130,3 +130,3 @@ /*

"format_args!",
"include_bin!",
"include_bytes!",
"include_str!",

@@ -292,3 +292,4 @@ "line!",

keyword: "Self",
built_in: BUILTINS
built_in: BUILTINS,
type: TYPES
}

@@ -295,0 +296,0 @@ },

@@ -122,16 +122,14 @@ /*

const END = [
{
begin: [
/^\s*/, // Is first token on the line
/end/,
/\s+/,
/(extension\b)?/, // `extension` is the only marker that follows an `end` that cannot be captured by another rule.
],
beginScope: {
2: "keyword",
4: "keyword",
}
const END = {
begin: [
/^\s*/, // Is first token on the line
/end/,
/\s+/,
/(extension\b)?/, // `extension` is the only marker that follows an `end` that cannot be captured by another rule.
],
beginScope: {
2: "keyword",
4: "keyword",
}
];
};

@@ -161,3 +159,3 @@ // TODO: use negative look-behind in future

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'
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'
},

@@ -164,0 +162,0 @@ contains: [

@@ -675,2 +675,3 @@ const MODES = (hljs) => {

end: /[;}{]/,
relevance: 0,
contains: [

@@ -683,3 +684,4 @@ modes.BLOCK_COMMENT,

hljs.APOS_STRING_MODE,
modes.IMPORTANT
modes.IMPORTANT,
modes.FUNCTION_DISPATCH
]

@@ -686,0 +688,0 @@ },

@@ -775,3 +775,4 @@ const MODES = (hljs) => {

hljs.C_BLOCK_COMMENT_MODE,
modes.IMPORTANT
modes.IMPORTANT,
modes.FUNCTION_DISPATCH
],

@@ -778,0 +779,0 @@ illegal: /\./,

@@ -97,2 +97,3 @@ /**

'actor',
'any', // contextual
'associatedtype',

@@ -114,2 +115,3 @@ 'async',

'didSet', // contextual
'distributed',
'do',

@@ -116,0 +118,0 @@ 'dynamic', // contextual

@@ -226,3 +226,3 @@ const IDENT_RE = '[A-Za-z$_][0-9A-Za-z$_]*';

let m;
const afterMatch = match.input.substr(afterMatchIndex);
const afterMatch = match.input.substring(afterMatchIndex);
// NOTE: This is ugh, but added specifically for https://github.com/highlightjs/highlight.js/issues/3276

@@ -229,0 +229,0 @@ if ((m = afterMatch.match(/^\s+extends\s+/))) {

@@ -5,3 +5,3 @@ /*

Description: Wasm is designed as a portable compilation target for programming languages, enabling deployment on the web for client and server applications.
Category: web
Category: web, common
Audit: 2020

@@ -8,0 +8,0 @@ */

@@ -11,5 +11,11 @@ /*

const regex = hljs.regex;
// Element names can contain letters, digits, hyphens, underscores, and periods
const TAG_NAME_RE = regex.concat(/[A-Z_]/, regex.optional(/[A-Z0-9_.-]*:/), /[A-Z0-9_.-]*/);
const XML_IDENT_RE = /[A-Za-z0-9._:-]+/;
// XML names can have the following additional letters: https://www.w3.org/TR/xml/#NT-NameChar
// OTHER_NAME_CHARS = /[:\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]/;
// Element names start with NAME_START_CHAR followed by optional other Unicode letters, ASCII digits, hyphens, underscores, and periods
// const TAG_NAME_RE = regex.concat(/[A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, regex.optional(/[A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*:/), /[A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*/);;
// const XML_IDENT_RE = /[A-Z_a-z:\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]+/;
// const TAG_NAME_RE = regex.concat(/[A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, regex.optional(/[A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*:/), /[A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*/);
// however, to cater for performance and more Unicode support rely simply on the Unicode letter class
const TAG_NAME_RE = regex.concat(/[\p{L}_]/u, regex.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u);
const XML_IDENT_RE = /[\p{L}0-9._:-]+/u;
const XML_ENTITIES = {

@@ -85,2 +91,3 @@ className: 'symbol',

case_insensitive: true,
unicodeRegex: true,
contains: [

@@ -87,0 +94,0 @@ {

@@ -9,7 +9,4 @@ {

"homepage": "https://highlightjs.org/",
"version": "11.5.1",
"author": {
"name": "Ivan Sagalaev",
"email": "maniac@softwaremaniacs.org"
},
"version": "11.6.0",
"author": "Josh Goebel <hello@joshgoebel.com>",
"contributors": [

@@ -63,33 +60,33 @@ "Josh Goebel <hello@joshgoebel.com>",

"@colors/colors": "^1.5.0",
"@rollup/plugin-commonjs": "^21.0.0",
"@rollup/plugin-commonjs": "^22.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.0.0",
"@types/mocha": "^9.0.0",
"@typescript-eslint/eslint-plugin": "^5.12.0",
"@typescript-eslint/parser": "^5.12.0",
"clean-css": "^5.0.1",
"@rollup/plugin-node-resolve": "^13.3.0",
"@types/mocha": "^9.1.1",
"@typescript-eslint/eslint-plugin": "^5.27.1",
"@typescript-eslint/parser": "^5.27.1",
"clean-css": "^5.3.0",
"cli-table": "^0.3.1",
"commander": "8.2",
"commander": "9.3",
"css": "^3.0.0",
"css-color-names": "^1.0.1",
"deep-freeze-es6": "^1.4.1",
"del": "^6.0.0",
"del": "^6.1.1",
"dependency-resolver": "^2.0.1",
"eslint": "^8.9.0",
"eslint-config-standard": "^16.0.1",
"eslint-plugin-import": "^2.25.4",
"eslint": "^8.17.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.0.0",
"glob": "^7.1.7",
"glob": "^7.2.3",
"glob-promise": "^4.2.2",
"handlebars": "^4.7.6",
"jsdom": "^19.0.0",
"jsdom": "^20.0.0",
"lodash": "^4.17.20",
"mocha": "^9.1.3",
"mocha": "^10.0.0",
"refa": "^0.4.1",
"rollup": "^2.47.0",
"should": "^13.2.3",
"terser": "^5.7.0",
"terser": "^5.14.1",
"tiny-worker": "^2.3.0",
"typescript": "^4.4.4",
"typescript": "^4.7.3",
"wcag-contrast": "^3.0.0"

@@ -96,0 +93,0 @@ },

@@ -331,6 +331,6 @@ # Highlight.js

```html
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/styles/default.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/highlight.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6.0/styles/default.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6.0/highlight.min.js"></script>
<!-- and it's easy to individually load additional languages -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/languages/go.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6.0/languages/go.min.js"></script>
```

@@ -341,7 +341,7 @@

````html
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/styles/dark.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6.0/styles/dark.min.css">
<script type="module">
import hljs from 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/es/highlight.min.js';
import hljs from 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6.0/es/highlight.min.js';
// and it's easy to individually load additional languages
import go from 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/es/languages/go.min.js';
import go from 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6.0/es/languages/go.min.js';
hljs.registerLanguage('go', go);

@@ -358,6 +358,6 @@ </script>

```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.5.1/build/styles/default.min.css">
<script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.5.1/build/highlight.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.6.0/build/styles/default.min.css">
<script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.6.0/build/highlight.min.js"></script>
<!-- and it's easy to individually load additional languages -->
<script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.5.1/build/languages/go.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.6.0/build/languages/go.min.js"></script>
```

@@ -368,7 +368,7 @@

```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.5.1/build/styles/default.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.6.0/build/styles/default.min.css">
<script type="module">
import hljs from 'https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.5.1/build/es/highlight.min.js';
import hljs from 'https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.6.0/build/es/highlight.min.js';
// and it's easy to individually load additional languages
import go from 'https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.5.1/build/es/languages/go.min.js';
import go from 'https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.6.0/build/es/languages/go.min.js';
hljs.registerLanguage('go', go);

@@ -383,6 +383,6 @@ </script>

```html
<link rel="stylesheet" href="https://unpkg.com/@highlightjs/cdn-assets@11.5.1/styles/default.min.css">
<script src="https://unpkg.com/@highlightjs/cdn-assets@11.5.1/highlight.min.js"></script>
<link rel="stylesheet" href="https://unpkg.com/@highlightjs/cdn-assets@11.6.0/styles/default.min.css">
<script src="https://unpkg.com/@highlightjs/cdn-assets@11.6.0/highlight.min.js"></script>
<!-- and it's easy to individually load additional languages -->
<script src="https://unpkg.com/@highlightjs/cdn-assets@11.5.1/languages/go.min.js"></script>
<script src="https://unpkg.com/@highlightjs/cdn-assets@11.6.0/languages/go.min.js"></script>
```

@@ -393,7 +393,7 @@

```html
<link rel="stylesheet" href="https://unpkg.com/@highlightjs/cdn-assets@11.5.1/styles/default.min.css">
<link rel="stylesheet" href="https://unpkg.com/@highlightjs/cdn-assets@11.6.0/styles/default.min.css">
<script type="module">
import hljs from 'https://unpkg.com/@highlightjs/cdn-assets@11.5.1/es/highlight.min.js';
import hljs from 'https://unpkg.com/@highlightjs/cdn-assets@11.6.0/es/highlight.min.js';
// and it's easy to individually load & register additional languages
import go from 'https://unpkg.com/@highlightjs/cdn-assets@11.5.1/es/languages/go.min.js';
import go from 'https://unpkg.com/@highlightjs/cdn-assets@11.6.0/es/languages/go.min.js';
hljs.registerLanguage('go', go);

@@ -400,0 +400,0 @@ </script>

@@ -16,2 +16,3 @@ # Supported Languages

| Ada | ada | |
| Apex | apex | [highlightjs-apex](https://github.com/highlightjs/highlightjs-apex/) |
| Arduino (C++ w/Arduino libs) | arduino, ino | |

@@ -132,2 +133,3 @@ | ARM assembler | armasm, arm | |

| MKB | mkb | [highlightjs-mkb](https://github.com/Dereavy/highlightjs-mkb) |
| MLIR | mlir | [highlightjs-mlir](https://github.com/highlightjs/highlightjs-mlir) |
| Mojolicious | mojolicious | |

@@ -142,2 +144,3 @@ | Monkey | monkey | |

| Nix | nix | |
| Oak | oak | [highlightjs-oak](https://github.com/timlabs/highlightjs-oak) |
| Object Constraint Language | ocl | [highlightjs-ocl](https://github.com/nhomble/highlightjs-ocl) |

@@ -209,2 +212,3 @@ | OCaml | ocaml, ml | |

| Thrift | thrift | |
| Toit | toit | [toit-highlight](https://github.com/snxx-lppxx/toit-highlight) |
| TP | tp | |

@@ -211,0 +215,0 @@ | Transact-SQL | tsql | [highlightjs-tsql](https://github.com/highlightjs/highlightjs-tsql) |

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc