fix(parser) Fix freezing issue with illegal 0 width matches #2524
joshgoebel added a commit to joshgoebel/highlight.js that referenced this pull request
May 3, 2020
…tjs#2524) * fix[parser] add edge case handle for illegal 0 width matches * add last ditch catch all that tries to detect other uncaught freezes
0xflotus added a commit to 0xflotus/highlight.js that referenced this pull request
Jun 12, 2020
🚀(highlightjs#2575) * chore(package): update @typescript-eslint/parser to version 3.0.0 * chore(package): update lockfile package-lock.json Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com> Co-authored-by: Josh Goebel <firstname.lastname@example.org> * Update @typescript-eslint/eslint-plugin to the latest version 🚀(highlightjs#2576) * chore(package): update @typescript-eslint/eslint-plugin to version 3.0.0 * chore(package): update lockfile package-lock.json Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com> Co-authored-by: Josh Goebel <email@example.com> * (parser) properly escape ' and " in HTML output (highlightjs#2564) * escape quotes also in final HTML output * [style] update test coding style * update markup tests with new escaping This shouldn't be a security issue -- we've always escaped double quotes inside of HTML attribute values (where they could be used to break out of context) - and we've always used double quotes for enclosing attribute values. This just goes all the way and now properly escapes quotes everywhere. Better safe than sorry. * (docs) add changelog entry for last PR * add nnfx theme (highlightjs#2571) * (themes) Add new lioshi theme (highlightjs#2581) * Added Cisco Command Line to SUPPORTED_LANGUAGES.md (highlightjs#2583) * (themes) add `nnfx-dark` theme (highlightjs#2584) * enh(protobuf) Support multiline comments (highlightjs#2597) * enh(java) added support for hexadecimal floating point literals (highlightjs#2509) - Added support for many additional types of floating point literals - Added related tests There still may be a few gaps, but this is a pretty large improvement. Co-authored-by: Josh Goebel <firstname.lastname@example.org> * (chore) Update issue templates (highlightjs#2574) Co-authored-by: Vladimir Jimenez <email@example.com> * enh(toml)(ini) Improve parsing of complex keys (highlightjs#2595) Fixes: highlightjs#2594 * (chore) add `.js` extension to import statements (highlightjs#2601) Adds file extensions to all import specifiers in ./src/ files. This is useful to run the files straight from source with a web browser , Node.js ESM or Deno. - Also add eslint rules regarding extensions for imports * enh(dart) highlight built-in nullable types (highlightjs#2598) * Dart: allow built-in nullable types with trailing ? to be highlighted * enh(csharp) highlight generics in more cases (highlightjs#2599) * (chore) fix tiny style issues, add linting npm task - fixes tiny style issues - adds `npm run lint` for linting the main library source (not languages which are still much messier) * (chore) bump dev dependencies * (chore) upgrade some dev stuff to newer versions * bump v10.1.0 * (chore) bump copyright * (chore) more import below metadata comment Co-authored-by: M. Mert Yıldıran <firstname.lastname@example.org> Co-authored-by: Josh Goebel <email@example.com> Co-authored-by: Hugo Leblanc <firstname.lastname@example.org> Co-authored-by: Peter Massey-Plantinga <email@example.com> Co-authored-by: David Benjamin <firstname.lastname@example.org> Co-authored-by: Vania Kucher <email@example.com> Co-authored-by: SweetPPro <firstname.lastname@example.org> Co-authored-by: Alexandre ZANNI <email@example.com> Co-authored-by: Taufik Nurrohman <firstname.lastname@example.org> Co-authored-by: Lin <50829219+Linhk1606@users.noreply.github.com> Co-authored-by: nicked <email@example.com> Co-authored-by: Nicolas Homble <firstname.lastname@example.org> Co-authored-by: Ryandi Tjia <email@example.com> Co-authored-by: Sam Rawlins <firstname.lastname@example.org> Co-authored-by: Sergey Prokhorov <email@example.com> Co-authored-by: Brian Alberg <firstname.lastname@example.org> Co-authored-by: Nils Knappmeier <email@example.com> Co-authored-by: Martin <7252614+Lhoerion@users.noreply.github.com> Co-authored-by: Derek Lewis <DerekNonGeneric@inf.is> Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com> Co-authored-by: Jim Mason <firstname.lastname@example.org> Co-authored-by: lioshi <email@example.com> Co-authored-by: BMatheas <65114274+BMatheas@users.noreply.github.com> Co-authored-by: Pavel Evstigneev <firstname.lastname@example.org> Co-authored-by: Vladimir Jimenez <email@example.com> Co-authored-by: Antoine du Hamel <firstname.lastname@example.org> Co-authored-by: TupikovVladimir <email@example.com>
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments.