react-syntax-highlighter
Advanced tools
Comparing version 13.4.0 to 13.5.0
@@ -9,3 +9,4 @@ module.exports = { | ||
'plugin:react/recommended', | ||
'plugin:prettier/recommended' | ||
'plugin:prettier/recommended', | ||
'plugin:jest/recommended' | ||
], | ||
@@ -20,3 +21,3 @@ parser: 'babel-eslint', | ||
}, | ||
plugins: ['react'], | ||
plugins: ['react', 'jest'], | ||
rules: { | ||
@@ -27,3 +28,3 @@ 'react/prop-types': 0 | ||
{ | ||
files: ['lib/build*', '.eslintrc.js'], | ||
files: ['scripts/*', '.eslintrc.js', 'babel.config.js'], | ||
env: { | ||
@@ -30,0 +31,0 @@ node: true |
@@ -6,2 +6,4 @@ ## Available `language` imports | ||
* ada | ||
* agda | ||
* al | ||
* antlr4 | ||
@@ -41,5 +43,7 @@ * apacheconf | ||
* css | ||
* cypher | ||
* d | ||
* dart | ||
* dax | ||
* dhall | ||
* diff | ||
@@ -50,2 +54,3 @@ * django | ||
* ebnf | ||
* editorconfig | ||
* eiffel | ||
@@ -80,2 +85,3 @@ * ejs | ||
* hcl | ||
* hlsl | ||
* hpkp | ||
@@ -86,2 +92,4 @@ * hsts | ||
* icon | ||
* iecst | ||
* ignore | ||
* inform7 | ||
@@ -104,2 +112,3 @@ * ini | ||
* jsonp | ||
* jsstacktrace | ||
* jsx | ||
@@ -146,2 +155,3 @@ * julia | ||
* pcaxis | ||
* peoplecode | ||
* perl | ||
@@ -161,2 +171,3 @@ * phpExtras (php-extras) | ||
* pure | ||
* purebasic | ||
* python | ||
@@ -167,2 +178,3 @@ * q | ||
* r | ||
* racket | ||
* reason | ||
@@ -183,2 +195,3 @@ * regex | ||
* shellSession (shell-session) | ||
* smali | ||
* smalltalk | ||
@@ -207,2 +220,3 @@ * smarty | ||
* typescript | ||
* unrealscript | ||
* vala | ||
@@ -215,8 +229,11 @@ * vbnet | ||
* visualBasic (visual-basic) | ||
* warpscript | ||
* wasm | ||
* wiki | ||
* xeora | ||
* xmlDoc (xml-doc) | ||
* xojo | ||
* xquery | ||
* yaml | ||
* yang | ||
* zig |
@@ -33,2 +33,12 @@ "use strict"; | ||
}), | ||
agda: (0, _createLanguageAsyncLoader.default)("agda", function () { | ||
return Promise.resolve().then(function () { | ||
return require("refractor/lang/agda.js"); | ||
}); | ||
}), | ||
al: (0, _createLanguageAsyncLoader.default)("al", function () { | ||
return Promise.resolve().then(function () { | ||
return require("refractor/lang/al.js"); | ||
}); | ||
}), | ||
antlr4: (0, _createLanguageAsyncLoader.default)("antlr4", function () { | ||
@@ -204,2 +214,7 @@ return Promise.resolve().then(function () { | ||
}), | ||
cypher: (0, _createLanguageAsyncLoader.default)("cypher", function () { | ||
return Promise.resolve().then(function () { | ||
return require("refractor/lang/cypher.js"); | ||
}); | ||
}), | ||
d: (0, _createLanguageAsyncLoader.default)("d", function () { | ||
@@ -220,2 +235,7 @@ return Promise.resolve().then(function () { | ||
}), | ||
dhall: (0, _createLanguageAsyncLoader.default)("dhall", function () { | ||
return Promise.resolve().then(function () { | ||
return require("refractor/lang/dhall.js"); | ||
}); | ||
}), | ||
diff: (0, _createLanguageAsyncLoader.default)("diff", function () { | ||
@@ -246,2 +266,7 @@ return Promise.resolve().then(function () { | ||
}), | ||
editorconfig: (0, _createLanguageAsyncLoader.default)("editorconfig", function () { | ||
return Promise.resolve().then(function () { | ||
return require("refractor/lang/editorconfig.js"); | ||
}); | ||
}), | ||
eiffel: (0, _createLanguageAsyncLoader.default)("eiffel", function () { | ||
@@ -392,2 +417,7 @@ return Promise.resolve().then(function () { | ||
}), | ||
hlsl: (0, _createLanguageAsyncLoader.default)("hlsl", function () { | ||
return Promise.resolve().then(function () { | ||
return require("refractor/lang/hlsl.js"); | ||
}); | ||
}), | ||
hpkp: (0, _createLanguageAsyncLoader.default)("hpkp", function () { | ||
@@ -418,2 +448,12 @@ return Promise.resolve().then(function () { | ||
}), | ||
iecst: (0, _createLanguageAsyncLoader.default)("iecst", function () { | ||
return Promise.resolve().then(function () { | ||
return require("refractor/lang/iecst.js"); | ||
}); | ||
}), | ||
ignore: (0, _createLanguageAsyncLoader.default)("ignore", function () { | ||
return Promise.resolve().then(function () { | ||
return require("refractor/lang/ignore.js"); | ||
}); | ||
}), | ||
inform7: (0, _createLanguageAsyncLoader.default)("inform7", function () { | ||
@@ -504,2 +544,7 @@ return Promise.resolve().then(function () { | ||
}), | ||
jsstacktrace: (0, _createLanguageAsyncLoader.default)("jsstacktrace", function () { | ||
return Promise.resolve().then(function () { | ||
return require("refractor/lang/jsstacktrace.js"); | ||
}); | ||
}), | ||
jsx: (0, _createLanguageAsyncLoader.default)("jsx", function () { | ||
@@ -710,2 +755,7 @@ return Promise.resolve().then(function () { | ||
}), | ||
peoplecode: (0, _createLanguageAsyncLoader.default)("peoplecode", function () { | ||
return Promise.resolve().then(function () { | ||
return require("refractor/lang/peoplecode.js"); | ||
}); | ||
}), | ||
perl: (0, _createLanguageAsyncLoader.default)("perl", function () { | ||
@@ -781,2 +831,7 @@ return Promise.resolve().then(function () { | ||
}), | ||
purebasic: (0, _createLanguageAsyncLoader.default)("purebasic", function () { | ||
return Promise.resolve().then(function () { | ||
return require("refractor/lang/purebasic.js"); | ||
}); | ||
}), | ||
python: (0, _createLanguageAsyncLoader.default)("python", function () { | ||
@@ -807,2 +862,7 @@ return Promise.resolve().then(function () { | ||
}), | ||
racket: (0, _createLanguageAsyncLoader.default)("racket", function () { | ||
return Promise.resolve().then(function () { | ||
return require("refractor/lang/racket.js"); | ||
}); | ||
}), | ||
reason: (0, _createLanguageAsyncLoader.default)("reason", function () { | ||
@@ -883,2 +943,7 @@ return Promise.resolve().then(function () { | ||
}), | ||
smali: (0, _createLanguageAsyncLoader.default)("smali", function () { | ||
return Promise.resolve().then(function () { | ||
return require("refractor/lang/smali.js"); | ||
}); | ||
}), | ||
smalltalk: (0, _createLanguageAsyncLoader.default)("smalltalk", function () { | ||
@@ -999,2 +1064,7 @@ return Promise.resolve().then(function () { | ||
}), | ||
unrealscript: (0, _createLanguageAsyncLoader.default)("unrealscript", function () { | ||
return Promise.resolve().then(function () { | ||
return require("refractor/lang/unrealscript.js"); | ||
}); | ||
}), | ||
vala: (0, _createLanguageAsyncLoader.default)("vala", function () { | ||
@@ -1035,2 +1105,7 @@ return Promise.resolve().then(function () { | ||
}), | ||
warpscript: (0, _createLanguageAsyncLoader.default)("warpscript", function () { | ||
return Promise.resolve().then(function () { | ||
return require("refractor/lang/warpscript.js"); | ||
}); | ||
}), | ||
wasm: (0, _createLanguageAsyncLoader.default)("wasm", function () { | ||
@@ -1051,2 +1126,7 @@ return Promise.resolve().then(function () { | ||
}), | ||
xmlDoc: (0, _createLanguageAsyncLoader.default)("xmlDoc", function () { | ||
return Promise.resolve().then(function () { | ||
return require("refractor/lang/xml-doc.js"); | ||
}); | ||
}), | ||
xojo: (0, _createLanguageAsyncLoader.default)("xojo", function () { | ||
@@ -1067,2 +1147,7 @@ return Promise.resolve().then(function () { | ||
}), | ||
yang: (0, _createLanguageAsyncLoader.default)("yang", function () { | ||
return Promise.resolve().then(function () { | ||
return require("refractor/lang/yang.js"); | ||
}); | ||
}), | ||
zig: (0, _createLanguageAsyncLoader.default)("zig", function () { | ||
@@ -1069,0 +1154,0 @@ return Promise.resolve().then(function () { |
@@ -32,2 +32,14 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "agda", { | ||
enumerable: true, | ||
get: function get() { | ||
return _agda.default; | ||
} | ||
}); | ||
Object.defineProperty(exports, "al", { | ||
enumerable: true, | ||
get: function get() { | ||
return _al.default; | ||
} | ||
}); | ||
Object.defineProperty(exports, "antlr4", { | ||
@@ -237,2 +249,8 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, "cypher", { | ||
enumerable: true, | ||
get: function get() { | ||
return _cypher.default; | ||
} | ||
}); | ||
Object.defineProperty(exports, "d", { | ||
@@ -256,2 +274,8 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, "dhall", { | ||
enumerable: true, | ||
get: function get() { | ||
return _dhall.default; | ||
} | ||
}); | ||
Object.defineProperty(exports, "diff", { | ||
@@ -287,2 +311,8 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, "editorconfig", { | ||
enumerable: true, | ||
get: function get() { | ||
return _editorconfig.default; | ||
} | ||
}); | ||
Object.defineProperty(exports, "eiffel", { | ||
@@ -462,2 +492,8 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, "hlsl", { | ||
enumerable: true, | ||
get: function get() { | ||
return _hlsl.default; | ||
} | ||
}); | ||
Object.defineProperty(exports, "hpkp", { | ||
@@ -493,2 +529,14 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, "iecst", { | ||
enumerable: true, | ||
get: function get() { | ||
return _iecst.default; | ||
} | ||
}); | ||
Object.defineProperty(exports, "ignore", { | ||
enumerable: true, | ||
get: function get() { | ||
return _ignore.default; | ||
} | ||
}); | ||
Object.defineProperty(exports, "inform7", { | ||
@@ -596,2 +644,8 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, "jsstacktrace", { | ||
enumerable: true, | ||
get: function get() { | ||
return _jsstacktrace.default; | ||
} | ||
}); | ||
Object.defineProperty(exports, "jsx", { | ||
@@ -843,2 +897,8 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, "peoplecode", { | ||
enumerable: true, | ||
get: function get() { | ||
return _peoplecode.default; | ||
} | ||
}); | ||
Object.defineProperty(exports, "perl", { | ||
@@ -928,2 +988,8 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, "purebasic", { | ||
enumerable: true, | ||
get: function get() { | ||
return _purebasic.default; | ||
} | ||
}); | ||
Object.defineProperty(exports, "python", { | ||
@@ -959,2 +1025,8 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, "racket", { | ||
enumerable: true, | ||
get: function get() { | ||
return _racket.default; | ||
} | ||
}); | ||
Object.defineProperty(exports, "reason", { | ||
@@ -1050,2 +1122,8 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, "smali", { | ||
enumerable: true, | ||
get: function get() { | ||
return _smali.default; | ||
} | ||
}); | ||
Object.defineProperty(exports, "smalltalk", { | ||
@@ -1189,2 +1267,8 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, "unrealscript", { | ||
enumerable: true, | ||
get: function get() { | ||
return _unrealscript.default; | ||
} | ||
}); | ||
Object.defineProperty(exports, "vala", { | ||
@@ -1232,2 +1316,8 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, "warpscript", { | ||
enumerable: true, | ||
get: function get() { | ||
return _warpscript.default; | ||
} | ||
}); | ||
Object.defineProperty(exports, "wasm", { | ||
@@ -1251,2 +1341,8 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, "xmlDoc", { | ||
enumerable: true, | ||
get: function get() { | ||
return _xmlDoc.default; | ||
} | ||
}); | ||
Object.defineProperty(exports, "xojo", { | ||
@@ -1270,2 +1366,8 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, "yang", { | ||
enumerable: true, | ||
get: function get() { | ||
return _yang.default; | ||
} | ||
}); | ||
Object.defineProperty(exports, "zig", { | ||
@@ -1286,2 +1388,6 @@ enumerable: true, | ||
var _agda = _interopRequireDefault(require("./agda")); | ||
var _al = _interopRequireDefault(require("./al")); | ||
var _antlr = _interopRequireDefault(require("./antlr4")); | ||
@@ -1355,2 +1461,4 @@ | ||
var _cypher = _interopRequireDefault(require("./cypher")); | ||
var _d = _interopRequireDefault(require("./d")); | ||
@@ -1362,2 +1470,4 @@ | ||
var _dhall = _interopRequireDefault(require("./dhall")); | ||
var _diff = _interopRequireDefault(require("./diff")); | ||
@@ -1373,2 +1483,4 @@ | ||
var _editorconfig = _interopRequireDefault(require("./editorconfig")); | ||
var _eiffel = _interopRequireDefault(require("./eiffel")); | ||
@@ -1432,2 +1544,4 @@ | ||
var _hlsl = _interopRequireDefault(require("./hlsl")); | ||
var _hpkp = _interopRequireDefault(require("./hpkp")); | ||
@@ -1443,2 +1557,6 @@ | ||
var _iecst = _interopRequireDefault(require("./iecst")); | ||
var _ignore = _interopRequireDefault(require("./ignore")); | ||
var _inform = _interopRequireDefault(require("./inform7")); | ||
@@ -1478,2 +1596,4 @@ | ||
var _jsstacktrace = _interopRequireDefault(require("./jsstacktrace")); | ||
var _jsx = _interopRequireDefault(require("./jsx")); | ||
@@ -1561,2 +1681,4 @@ | ||
var _peoplecode = _interopRequireDefault(require("./peoplecode")); | ||
var _perl = _interopRequireDefault(require("./perl")); | ||
@@ -1590,2 +1712,4 @@ | ||
var _purebasic = _interopRequireDefault(require("./purebasic")); | ||
var _python = _interopRequireDefault(require("./python")); | ||
@@ -1601,2 +1725,4 @@ | ||
var _racket = _interopRequireDefault(require("./racket")); | ||
var _reason = _interopRequireDefault(require("./reason")); | ||
@@ -1632,2 +1758,4 @@ | ||
var _smali = _interopRequireDefault(require("./smali")); | ||
var _smalltalk = _interopRequireDefault(require("./smalltalk")); | ||
@@ -1679,2 +1807,4 @@ | ||
var _unrealscript = _interopRequireDefault(require("./unrealscript")); | ||
var _vala = _interopRequireDefault(require("./vala")); | ||
@@ -1694,2 +1824,4 @@ | ||
var _warpscript = _interopRequireDefault(require("./warpscript")); | ||
var _wasm = _interopRequireDefault(require("./wasm")); | ||
@@ -1701,2 +1833,4 @@ | ||
var _xmlDoc = _interopRequireDefault(require("./xml-doc")); | ||
var _xojo = _interopRequireDefault(require("./xojo")); | ||
@@ -1708,2 +1842,4 @@ | ||
var _yang = _interopRequireDefault(require("./yang")); | ||
var _zig = _interopRequireDefault(require("./zig")); |
@@ -10,3 +10,3 @@ "use strict"; | ||
// | ||
var _default = ['abap', 'abnf', 'actionscript', 'ada', 'antlr4', 'apacheconf', 'apl', 'applescript', 'aql', 'arduino', 'arff', 'asciidoc', 'asm6502', 'aspnet', 'autohotkey', 'autoit', 'bash', 'basic', 'batch', 'bbcode', 'bison', 'bnf', 'brainfuck', 'brightscript', 'bro', 'c', 'cil', 'clike', 'clojure', 'cmake', 'coffeescript', 'concurnas', 'cpp', 'crystal', 'csharp', 'csp', 'css-extras', 'css', 'd', 'dart', 'dax', 'diff', 'django', 'dns-zone-file', 'docker', 'ebnf', 'eiffel', 'ejs', 'elixir', 'elm', 'erb', 'erlang', 'etlua', 'excel-formula', 'factor', 'firestore-security-rules', 'flow', 'fortran', 'fsharp', 'ftl', 'gcode', 'gdscript', 'gedcom', 'gherkin', 'git', 'glsl', 'gml', 'go', 'graphql', 'groovy', 'haml', 'handlebars', 'haskell', 'haxe', 'hcl', 'hpkp', 'hsts', 'http', 'ichigojam', 'icon', 'inform7', 'ini', 'io', 'j', 'java', 'javadoc', 'javadoclike', 'javascript', 'javastacktrace', 'jolie', 'jq', 'js-extras', 'js-templates', 'jsdoc', 'json', 'json5', 'jsonp', 'jsx', 'julia', 'keyman', 'kotlin', 'latex', 'latte', 'less', 'lilypond', 'liquid', 'lisp', 'livescript', 'llvm', 'lolcode', 'lua', 'makefile', 'markdown', 'markup-templating', 'markup', 'matlab', 'mel', 'mizar', 'monkey', 'moonscript', 'n1ql', 'n4js', 'nand2tetris-hdl', 'nasm', 'neon', 'nginx', 'nim', 'nix', 'nsis', 'objectivec', 'ocaml', 'opencl', 'oz', 'parigp', 'parser', 'pascal', 'pascaligo', 'pcaxis', 'perl', 'php-extras', 'php', 'phpdoc', 'plsql', 'powerquery', 'powershell', 'processing', 'prolog', 'properties', 'protobuf', 'pug', 'puppet', 'pure', 'python', 'q', 'qml', 'qore', 'r', 'reason', 'regex', 'renpy', 'rest', 'rip', 'roboconf', 'robotframework', 'ruby', 'rust', 'sas', 'sass', 'scala', 'scheme', 'scss', 'shell-session', 'smalltalk', 'smarty', 'solidity', 'solution-file', 'soy', 'sparql', 'splunk-spl', 'sqf', 'sql', 'stylus', 'swift', 't4-cs', 't4-templating', 't4-vb', 'tap', 'tcl', 'textile', 'toml', 'tsx', 'tt2', 'turtle', 'twig', 'typescript', 'vala', 'vbnet', 'velocity', 'verilog', 'vhdl', 'vim', 'visual-basic', 'wasm', 'wiki', 'xeora', 'xojo', 'xquery', 'yaml', 'zig']; | ||
var _default = ['abap', 'abnf', 'actionscript', 'ada', 'agda', 'al', 'antlr4', 'apacheconf', 'apl', 'applescript', 'aql', 'arduino', 'arff', 'asciidoc', 'asm6502', 'aspnet', 'autohotkey', 'autoit', 'bash', 'basic', 'batch', 'bbcode', 'bison', 'bnf', 'brainfuck', 'brightscript', 'bro', 'c', 'cil', 'clike', 'clojure', 'cmake', 'coffeescript', 'concurnas', 'cpp', 'crystal', 'csharp', 'csp', 'css-extras', 'css', 'cypher', 'd', 'dart', 'dax', 'dhall', 'diff', 'django', 'dns-zone-file', 'docker', 'ebnf', 'editorconfig', 'eiffel', 'ejs', 'elixir', 'elm', 'erb', 'erlang', 'etlua', 'excel-formula', 'factor', 'firestore-security-rules', 'flow', 'fortran', 'fsharp', 'ftl', 'gcode', 'gdscript', 'gedcom', 'gherkin', 'git', 'glsl', 'gml', 'go', 'graphql', 'groovy', 'haml', 'handlebars', 'haskell', 'haxe', 'hcl', 'hlsl', 'hpkp', 'hsts', 'http', 'ichigojam', 'icon', 'iecst', 'ignore', 'inform7', 'ini', 'io', 'j', 'java', 'javadoc', 'javadoclike', 'javascript', 'javastacktrace', 'jolie', 'jq', 'js-extras', 'js-templates', 'jsdoc', 'json', 'json5', 'jsonp', 'jsstacktrace', 'jsx', 'julia', 'keyman', 'kotlin', 'latex', 'latte', 'less', 'lilypond', 'liquid', 'lisp', 'livescript', 'llvm', 'lolcode', 'lua', 'makefile', 'markdown', 'markup-templating', 'markup', 'matlab', 'mel', 'mizar', 'monkey', 'moonscript', 'n1ql', 'n4js', 'nand2tetris-hdl', 'nasm', 'neon', 'nginx', 'nim', 'nix', 'nsis', 'objectivec', 'ocaml', 'opencl', 'oz', 'parigp', 'parser', 'pascal', 'pascaligo', 'pcaxis', 'peoplecode', 'perl', 'php-extras', 'php', 'phpdoc', 'plsql', 'powerquery', 'powershell', 'processing', 'prolog', 'properties', 'protobuf', 'pug', 'puppet', 'pure', 'purebasic', 'python', 'q', 'qml', 'qore', 'r', 'racket', 'reason', 'regex', 'renpy', 'rest', 'rip', 'roboconf', 'robotframework', 'ruby', 'rust', 'sas', 'sass', 'scala', 'scheme', 'scss', 'shell-session', 'smali', 'smalltalk', 'smarty', 'solidity', 'solution-file', 'soy', 'sparql', 'splunk-spl', 'sqf', 'sql', 'stylus', 'swift', 't4-cs', 't4-templating', 't4-vb', 'tap', 'tcl', 'textile', 'toml', 'tsx', 'tt2', 'turtle', 'twig', 'typescript', 'unrealscript', 'vala', 'vbnet', 'velocity', 'verilog', 'vhdl', 'vim', 'visual-basic', 'warpscript', 'wasm', 'wiki', 'xeora', 'xml-doc', 'xojo', 'xquery', 'yaml', 'yang', 'zig']; | ||
exports.default = _default; |
@@ -23,2 +23,12 @@ import createLanguageAsyncLoader from "./create-language-async-loader"; | ||
}), | ||
agda: createLanguageAsyncLoader("agda", function () { | ||
return import( | ||
/* webpackChunkName: "react-syntax-highlighter_languages_refractor_agda" */ | ||
"refractor/lang/agda.js"); | ||
}), | ||
al: createLanguageAsyncLoader("al", function () { | ||
return import( | ||
/* webpackChunkName: "react-syntax-highlighter_languages_refractor_al" */ | ||
"refractor/lang/al.js"); | ||
}), | ||
antlr4: createLanguageAsyncLoader("antlr4", function () { | ||
@@ -194,2 +204,7 @@ return import( | ||
}), | ||
cypher: createLanguageAsyncLoader("cypher", function () { | ||
return import( | ||
/* webpackChunkName: "react-syntax-highlighter_languages_refractor_cypher" */ | ||
"refractor/lang/cypher.js"); | ||
}), | ||
d: createLanguageAsyncLoader("d", function () { | ||
@@ -210,2 +225,7 @@ return import( | ||
}), | ||
dhall: createLanguageAsyncLoader("dhall", function () { | ||
return import( | ||
/* webpackChunkName: "react-syntax-highlighter_languages_refractor_dhall" */ | ||
"refractor/lang/dhall.js"); | ||
}), | ||
diff: createLanguageAsyncLoader("diff", function () { | ||
@@ -236,2 +256,7 @@ return import( | ||
}), | ||
editorconfig: createLanguageAsyncLoader("editorconfig", function () { | ||
return import( | ||
/* webpackChunkName: "react-syntax-highlighter_languages_refractor_editorconfig" */ | ||
"refractor/lang/editorconfig.js"); | ||
}), | ||
eiffel: createLanguageAsyncLoader("eiffel", function () { | ||
@@ -382,2 +407,7 @@ return import( | ||
}), | ||
hlsl: createLanguageAsyncLoader("hlsl", function () { | ||
return import( | ||
/* webpackChunkName: "react-syntax-highlighter_languages_refractor_hlsl" */ | ||
"refractor/lang/hlsl.js"); | ||
}), | ||
hpkp: createLanguageAsyncLoader("hpkp", function () { | ||
@@ -408,2 +438,12 @@ return import( | ||
}), | ||
iecst: createLanguageAsyncLoader("iecst", function () { | ||
return import( | ||
/* webpackChunkName: "react-syntax-highlighter_languages_refractor_iecst" */ | ||
"refractor/lang/iecst.js"); | ||
}), | ||
ignore: createLanguageAsyncLoader("ignore", function () { | ||
return import( | ||
/* webpackChunkName: "react-syntax-highlighter_languages_refractor_ignore" */ | ||
"refractor/lang/ignore.js"); | ||
}), | ||
inform7: createLanguageAsyncLoader("inform7", function () { | ||
@@ -494,2 +534,7 @@ return import( | ||
}), | ||
jsstacktrace: createLanguageAsyncLoader("jsstacktrace", function () { | ||
return import( | ||
/* webpackChunkName: "react-syntax-highlighter_languages_refractor_jsstacktrace" */ | ||
"refractor/lang/jsstacktrace.js"); | ||
}), | ||
jsx: createLanguageAsyncLoader("jsx", function () { | ||
@@ -700,2 +745,7 @@ return import( | ||
}), | ||
peoplecode: createLanguageAsyncLoader("peoplecode", function () { | ||
return import( | ||
/* webpackChunkName: "react-syntax-highlighter_languages_refractor_peoplecode" */ | ||
"refractor/lang/peoplecode.js"); | ||
}), | ||
perl: createLanguageAsyncLoader("perl", function () { | ||
@@ -771,2 +821,7 @@ return import( | ||
}), | ||
purebasic: createLanguageAsyncLoader("purebasic", function () { | ||
return import( | ||
/* webpackChunkName: "react-syntax-highlighter_languages_refractor_purebasic" */ | ||
"refractor/lang/purebasic.js"); | ||
}), | ||
python: createLanguageAsyncLoader("python", function () { | ||
@@ -797,2 +852,7 @@ return import( | ||
}), | ||
racket: createLanguageAsyncLoader("racket", function () { | ||
return import( | ||
/* webpackChunkName: "react-syntax-highlighter_languages_refractor_racket" */ | ||
"refractor/lang/racket.js"); | ||
}), | ||
reason: createLanguageAsyncLoader("reason", function () { | ||
@@ -873,2 +933,7 @@ return import( | ||
}), | ||
smali: createLanguageAsyncLoader("smali", function () { | ||
return import( | ||
/* webpackChunkName: "react-syntax-highlighter_languages_refractor_smali" */ | ||
"refractor/lang/smali.js"); | ||
}), | ||
smalltalk: createLanguageAsyncLoader("smalltalk", function () { | ||
@@ -989,2 +1054,7 @@ return import( | ||
}), | ||
unrealscript: createLanguageAsyncLoader("unrealscript", function () { | ||
return import( | ||
/* webpackChunkName: "react-syntax-highlighter_languages_refractor_unrealscript" */ | ||
"refractor/lang/unrealscript.js"); | ||
}), | ||
vala: createLanguageAsyncLoader("vala", function () { | ||
@@ -1025,2 +1095,7 @@ return import( | ||
}), | ||
warpscript: createLanguageAsyncLoader("warpscript", function () { | ||
return import( | ||
/* webpackChunkName: "react-syntax-highlighter_languages_refractor_warpscript" */ | ||
"refractor/lang/warpscript.js"); | ||
}), | ||
wasm: createLanguageAsyncLoader("wasm", function () { | ||
@@ -1041,2 +1116,7 @@ return import( | ||
}), | ||
xmlDoc: createLanguageAsyncLoader("xmlDoc", function () { | ||
return import( | ||
/* webpackChunkName: "react-syntax-highlighter_languages_refractor_xmlDoc" */ | ||
"refractor/lang/xml-doc.js"); | ||
}), | ||
xojo: createLanguageAsyncLoader("xojo", function () { | ||
@@ -1057,2 +1137,7 @@ return import( | ||
}), | ||
yang: createLanguageAsyncLoader("yang", function () { | ||
return import( | ||
/* webpackChunkName: "react-syntax-highlighter_languages_refractor_yang" */ | ||
"refractor/lang/yang.js"); | ||
}), | ||
zig: createLanguageAsyncLoader("zig", function () { | ||
@@ -1059,0 +1144,0 @@ return import( |
@@ -5,2 +5,4 @@ export { default as abap } from './abap'; | ||
export { default as ada } from './ada'; | ||
export { default as agda } from './agda'; | ||
export { default as al } from './al'; | ||
export { default as antlr4 } from './antlr4'; | ||
@@ -40,5 +42,7 @@ export { default as apacheconf } from './apacheconf'; | ||
export { default as css } from './css'; | ||
export { default as cypher } from './cypher'; | ||
export { default as d } from './d'; | ||
export { default as dart } from './dart'; | ||
export { default as dax } from './dax'; | ||
export { default as dhall } from './dhall'; | ||
export { default as diff } from './diff'; | ||
@@ -49,2 +53,3 @@ export { default as django } from './django'; | ||
export { default as ebnf } from './ebnf'; | ||
export { default as editorconfig } from './editorconfig'; | ||
export { default as eiffel } from './eiffel'; | ||
@@ -79,2 +84,3 @@ export { default as ejs } from './ejs'; | ||
export { default as hcl } from './hcl'; | ||
export { default as hlsl } from './hlsl'; | ||
export { default as hpkp } from './hpkp'; | ||
@@ -85,2 +91,4 @@ export { default as hsts } from './hsts'; | ||
export { default as icon } from './icon'; | ||
export { default as iecst } from './iecst'; | ||
export { default as ignore } from './ignore'; | ||
export { default as inform7 } from './inform7'; | ||
@@ -103,2 +111,3 @@ export { default as ini } from './ini'; | ||
export { default as jsonp } from './jsonp'; | ||
export { default as jsstacktrace } from './jsstacktrace'; | ||
export { default as jsx } from './jsx'; | ||
@@ -145,2 +154,3 @@ export { default as julia } from './julia'; | ||
export { default as pcaxis } from './pcaxis'; | ||
export { default as peoplecode } from './peoplecode'; | ||
export { default as perl } from './perl'; | ||
@@ -160,2 +170,3 @@ export { default as phpExtras } from './php-extras'; | ||
export { default as pure } from './pure'; | ||
export { default as purebasic } from './purebasic'; | ||
export { default as python } from './python'; | ||
@@ -166,2 +177,3 @@ export { default as q } from './q'; | ||
export { default as r } from './r'; | ||
export { default as racket } from './racket'; | ||
export { default as reason } from './reason'; | ||
@@ -182,2 +194,3 @@ export { default as regex } from './regex'; | ||
export { default as shellSession } from './shell-session'; | ||
export { default as smali } from './smali'; | ||
export { default as smalltalk } from './smalltalk'; | ||
@@ -206,2 +219,3 @@ export { default as smarty } from './smarty'; | ||
export { default as typescript } from './typescript'; | ||
export { default as unrealscript } from './unrealscript'; | ||
export { default as vala } from './vala'; | ||
@@ -214,8 +228,11 @@ export { default as vbnet } from './vbnet'; | ||
export { default as visualBasic } from './visual-basic'; | ||
export { default as warpscript } from './warpscript'; | ||
export { default as wasm } from './wasm'; | ||
export { default as wiki } from './wiki'; | ||
export { default as xeora } from './xeora'; | ||
export { default as xmlDoc } from './xml-doc'; | ||
export { default as xojo } from './xojo'; | ||
export { default as xquery } from './xquery'; | ||
export { default as yaml } from './yaml'; | ||
export { default as yang } from './yang'; | ||
export { default as zig } from './zig'; |
// | ||
// This file has been auto-generated by the `npm run build-languages-prism` task | ||
// | ||
export default ['abap', 'abnf', 'actionscript', 'ada', 'antlr4', 'apacheconf', 'apl', 'applescript', 'aql', 'arduino', 'arff', 'asciidoc', 'asm6502', 'aspnet', 'autohotkey', 'autoit', 'bash', 'basic', 'batch', 'bbcode', 'bison', 'bnf', 'brainfuck', 'brightscript', 'bro', 'c', 'cil', 'clike', 'clojure', 'cmake', 'coffeescript', 'concurnas', 'cpp', 'crystal', 'csharp', 'csp', 'css-extras', 'css', 'd', 'dart', 'dax', 'diff', 'django', 'dns-zone-file', 'docker', 'ebnf', 'eiffel', 'ejs', 'elixir', 'elm', 'erb', 'erlang', 'etlua', 'excel-formula', 'factor', 'firestore-security-rules', 'flow', 'fortran', 'fsharp', 'ftl', 'gcode', 'gdscript', 'gedcom', 'gherkin', 'git', 'glsl', 'gml', 'go', 'graphql', 'groovy', 'haml', 'handlebars', 'haskell', 'haxe', 'hcl', 'hpkp', 'hsts', 'http', 'ichigojam', 'icon', 'inform7', 'ini', 'io', 'j', 'java', 'javadoc', 'javadoclike', 'javascript', 'javastacktrace', 'jolie', 'jq', 'js-extras', 'js-templates', 'jsdoc', 'json', 'json5', 'jsonp', 'jsx', 'julia', 'keyman', 'kotlin', 'latex', 'latte', 'less', 'lilypond', 'liquid', 'lisp', 'livescript', 'llvm', 'lolcode', 'lua', 'makefile', 'markdown', 'markup-templating', 'markup', 'matlab', 'mel', 'mizar', 'monkey', 'moonscript', 'n1ql', 'n4js', 'nand2tetris-hdl', 'nasm', 'neon', 'nginx', 'nim', 'nix', 'nsis', 'objectivec', 'ocaml', 'opencl', 'oz', 'parigp', 'parser', 'pascal', 'pascaligo', 'pcaxis', 'perl', 'php-extras', 'php', 'phpdoc', 'plsql', 'powerquery', 'powershell', 'processing', 'prolog', 'properties', 'protobuf', 'pug', 'puppet', 'pure', 'python', 'q', 'qml', 'qore', 'r', 'reason', 'regex', 'renpy', 'rest', 'rip', 'roboconf', 'robotframework', 'ruby', 'rust', 'sas', 'sass', 'scala', 'scheme', 'scss', 'shell-session', 'smalltalk', 'smarty', 'solidity', 'solution-file', 'soy', 'sparql', 'splunk-spl', 'sqf', 'sql', 'stylus', 'swift', 't4-cs', 't4-templating', 't4-vb', 'tap', 'tcl', 'textile', 'toml', 'tsx', 'tt2', 'turtle', 'twig', 'typescript', 'vala', 'vbnet', 'velocity', 'verilog', 'vhdl', 'vim', 'visual-basic', 'wasm', 'wiki', 'xeora', 'xojo', 'xquery', 'yaml', 'zig']; | ||
export default ['abap', 'abnf', 'actionscript', 'ada', 'agda', 'al', 'antlr4', 'apacheconf', 'apl', 'applescript', 'aql', 'arduino', 'arff', 'asciidoc', 'asm6502', 'aspnet', 'autohotkey', 'autoit', 'bash', 'basic', 'batch', 'bbcode', 'bison', 'bnf', 'brainfuck', 'brightscript', 'bro', 'c', 'cil', 'clike', 'clojure', 'cmake', 'coffeescript', 'concurnas', 'cpp', 'crystal', 'csharp', 'csp', 'css-extras', 'css', 'cypher', 'd', 'dart', 'dax', 'dhall', 'diff', 'django', 'dns-zone-file', 'docker', 'ebnf', 'editorconfig', 'eiffel', 'ejs', 'elixir', 'elm', 'erb', 'erlang', 'etlua', 'excel-formula', 'factor', 'firestore-security-rules', 'flow', 'fortran', 'fsharp', 'ftl', 'gcode', 'gdscript', 'gedcom', 'gherkin', 'git', 'glsl', 'gml', 'go', 'graphql', 'groovy', 'haml', 'handlebars', 'haskell', 'haxe', 'hcl', 'hlsl', 'hpkp', 'hsts', 'http', 'ichigojam', 'icon', 'iecst', 'ignore', 'inform7', 'ini', 'io', 'j', 'java', 'javadoc', 'javadoclike', 'javascript', 'javastacktrace', 'jolie', 'jq', 'js-extras', 'js-templates', 'jsdoc', 'json', 'json5', 'jsonp', 'jsstacktrace', 'jsx', 'julia', 'keyman', 'kotlin', 'latex', 'latte', 'less', 'lilypond', 'liquid', 'lisp', 'livescript', 'llvm', 'lolcode', 'lua', 'makefile', 'markdown', 'markup-templating', 'markup', 'matlab', 'mel', 'mizar', 'monkey', 'moonscript', 'n1ql', 'n4js', 'nand2tetris-hdl', 'nasm', 'neon', 'nginx', 'nim', 'nix', 'nsis', 'objectivec', 'ocaml', 'opencl', 'oz', 'parigp', 'parser', 'pascal', 'pascaligo', 'pcaxis', 'peoplecode', 'perl', 'php-extras', 'php', 'phpdoc', 'plsql', 'powerquery', 'powershell', 'processing', 'prolog', 'properties', 'protobuf', 'pug', 'puppet', 'pure', 'purebasic', 'python', 'q', 'qml', 'qore', 'r', 'racket', 'reason', 'regex', 'renpy', 'rest', 'rip', 'roboconf', 'robotframework', 'ruby', 'rust', 'sas', 'sass', 'scala', 'scheme', 'scss', 'shell-session', 'smali', 'smalltalk', 'smarty', 'solidity', 'solution-file', 'soy', 'sparql', 'splunk-spl', 'sqf', 'sql', 'stylus', 'swift', 't4-cs', 't4-templating', 't4-vb', 'tap', 'tcl', 'textile', 'toml', 'tsx', 'tt2', 'turtle', 'twig', 'typescript', 'unrealscript', 'vala', 'vbnet', 'velocity', 'verilog', 'vhdl', 'vim', 'visual-basic', 'warpscript', 'wasm', 'wiki', 'xeora', 'xml-doc', 'xojo', 'xquery', 'yaml', 'yang', 'zig']; |
{ | ||
"name": "react-syntax-highlighter", | ||
"version": "13.4.0", | ||
"version": "13.5.0", | ||
"description": "syntax highlighting component for react with prismjs or highlightjs ast using inline styles", | ||
@@ -13,3 +13,3 @@ "main": "dist/cjs/index.js", | ||
"prismjs": "^1.21.0", | ||
"refractor": "^3.0.0" | ||
"refractor": "^3.1.0" | ||
}, | ||
@@ -39,2 +39,3 @@ "jest": { | ||
"eslint-config-prettier": "^6.11.0", | ||
"eslint-plugin-jest": "^23.20.0", | ||
"eslint-plugin-prettier": "^3.1.4", | ||
@@ -46,3 +47,3 @@ "eslint-plugin-react": "^7.20.6", | ||
"prettier": "^1.15.2", | ||
"prism-themes": "https://github.com/PrismJS/prism-themes.git#3c08290e35b57628dccfaae10b951029c63b3977", | ||
"prism-themes": "1.4.0", | ||
"react": "^15.2.0", | ||
@@ -67,7 +68,7 @@ "react-dom": "^15.2.0", | ||
"build:esm": "BABEL_ENV=esm babel src --out-dir ./dist/esm", | ||
"watch": "babel src --watch --out-dir .", | ||
"build-styles-hljs": "node ./lib/build-stylesheets-highlightjs.js", | ||
"build-languages-hljs": "node ./lib/build-languages-highlightjs.js", | ||
"build-styles-prism": "node ./lib/build-stylesheets-refractor.js", | ||
"build-languages-prism": "node ./lib/build-languages-refractor.js", | ||
"watch": "npm run build:esm -- --watch", | ||
"build-styles-hljs": "node ./scripts/build-stylesheets-highlightjs.js", | ||
"build-languages-hljs": "node ./scripts/build-languages-highlightjs.js", | ||
"build-styles-prism": "node ./scripts/build-stylesheets-refractor.js", | ||
"build-languages-prism": "node ./scripts/build-languages-refractor.js", | ||
"prepare": "npm run build-styles-hljs && npm run build-languages-hljs && npm run build-styles-prism && npm run build-languages-prism && npm run build", | ||
@@ -77,4 +78,5 @@ "test": "jest", | ||
"publish-coverage": "codecov", | ||
"format": "prettier --write --no-editorconfig \"**/*.js\"", | ||
"lint": "eslint --ext .js,.jsx src/ lib/" | ||
"format": "npm run prettier", | ||
"prettier": "prettier --write --no-editorconfig \"{src,scripts,__tests__}/**/*.js\"", | ||
"lint": "eslint --ext .js,.jsx ./src ./scripts ./__tests__" | ||
}, | ||
@@ -81,0 +83,0 @@ "repository": { |
## React Syntax Highlighter | ||
[![Actions Status](https://github.com/react-syntax-highlighter/react-syntax-highlighter/workflows/Node%20CI/badge.svg)](https://github.com/conorhastings/react-syntax-highlighter/actions) | ||
[![npm](https://img.shields.io/npm/dm/react-syntax-highlighter.svg?style=flat-square)](https://www.npmjs.com/package/react-syntax-highlighter) | ||
<!-- [![codecov](https://codecov.io/gh/conorhastings/react-syntax-highlighter/branch/master/graph/badge.svg)](https://codecov.io/gh/conorhastings/react-syntax-highlighter) --> | ||
[![npm](https://img.shields.io/npm/dm/react-syntax-highlighter.svg?style=flat-square)](https://www.npmjs.com/package/react-syntax-highlighter) | ||
Syntax highlighting component for `React` using the seriously super amazing <a href="https://github.com/wooorm/lowlight">lowlight</a> and <a href="https://github.com/wooorm/refractor">refractor</a> by <a href="https://github.com/wooorm">wooorm</a> | ||
@@ -10,0 +9,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1711852
1726
66953
36
162
Updatedrefractor@^3.1.0