highlight.js v10.3.0 Release Notes

Release Date: 2020-10-17 // over 3 years ago
  • Language Improvements:

    • enh(latex) Complete ground up rewrite of LaTex grammar schtandard
    • ๐Ÿ›  fix(cpp) implement backslash line continuation in comments (#2757) Konrad Rudolph
    • ๐Ÿ›  fix(cpp) improve parsing issues with templates (#2752) [Josh Goebel][]
    • ๐Ÿ‘ enh(cpp) add support for enum (struct|class) and union (#2752) [Josh Goebel][]
    • ๐Ÿ›  fix(js/ts) Fix nesting of {} inside template literals SUBST expression (#2748) [Josh Goebel][]
    • enh(js/ts) Highlight class methods as functions (#2727) [Josh Goebel][]
    • ๐Ÿ›  fix(js/ts) constructor is now highlighted as a function title (not keyword) (#2727) [Josh Goebel][]
    • ๐Ÿ›  fix(c-like) preprocessor directives not detected after else (#2738) [Josh Goebel][]
    • enh(javascript) allow # for private class fields (#2701) Chris Krycho
    • ๐Ÿ›  fix(js) prevent runaway regex (#2746) [Josh Goebel][]
    • ๐Ÿ›  fix(bash) enh(bash) allow nested params (#2731) [Josh Goebel][]
    • ๐Ÿ›  fix(python) Fix highlighting of keywords and strings (#2713, #2715) Konrad Rudolph
    • ๐Ÿ›  fix(fsharp) Prevent (*) from being detected as a multi-line comment [Josh Goebel][]
    • ๐Ÿ‘ enh(bash) add support for heredocs (#2684) [Josh Goebel][]
    • enh(r) major overhaul of the R language grammar (and fix a few bugs) (#2680) Konrad Rudolph
    • enh(csharp) Add all C# 9 keywords, and other missing keywords (#2679) David Pine
    • enh(objectivec) Add objective-c++ and obj-c++ aliases for Objective-C [Josh Goebel][]
    • ๐Ÿ‘ enh(java) Add support for record (#2685) [Josh Goebel][]
    • ๐Ÿ›  fix(csharp) prevent modifier keywords wrongly flagged as title (#2683) [Josh Goebel][]
    • โšก๏ธ enh(axapta) Update keyword list for Axapta (X++) (#2686) Ryan Jonasson
    • ๐Ÿ›  fix(fortran) FORTRAN 77-style comments (#2677) Philipp Engel
    • ๐Ÿ›  fix(javascript) Comments inside params should be highlighted (#2702) [Josh Goebel][]
    • ๐Ÿ›  fix(scala) Comments inside class header should be highlighted (#1559) [Josh Goebel][]
    • ๐Ÿ›  fix(c-like) Correctly highlight modifiers (final) in class declaration (#2696) [Josh Goebel][]
    • ๐Ÿ“‡ enh(angelscript) Improve heredocs, numbers, metadata blocks (#2724) Melissa Geels
    • enh(javascript) Implement Numeric Separators (#2617) Antoine du Hamel
    • ๐Ÿ‘ enh(typescript) TypeScript also gains support for numeric separators (#2617) Antoine du Hamel
    • ๐Ÿ‘ enh(php) Add support for PHP 8 match keyword and add php8 as an alias (#2733) Ayesh Karunaratne
    • ๐Ÿ›  fix(handlebars) Support if else keyboards (#2659) Tom Wallace

    ๐Ÿ—„ Deprecations:

    • ๐Ÿšš useBR option deprecated and will be removed in v11.0. (#2559) [Josh Goebel][]