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)
andunion
(#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++
andobj-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 addphp8
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][]