highlight.js
11.12.0 · 12 Aug 2026BSD-3-Clause56.9M / weekRepositoryHomepagenpmAtom feed
In short
2 security14 new15 fixed36 changed2 internal
- Security
fix(c, cpp) bound the run of type tokens in front of a function name (ReDoS), issue #4362 [Jayesh Bhade]
- Security
fix(xml) remove recursive sublanguage references to prevent ReDoS [petejm]
Release note
Parser Engine:
fix(parser) count named capture groups when rewriting backreferences spokodev
New Grammars:
Add FreeDesktop config file (
.desktop/ systemd) grammar [gg582]Added 3rd party Cedar grammar to SUPPORTED_LANGUAGES [Dhruv Maniya]
Added 3rd party DAX and M (Power Query) grammars to SUPPORTED_LANGUAGES [jiaopengzi]
Added 3rd party Djot grammar to SUPPORTED_LANGUAGES [Mark Scherer]
Added 3rd party Igor Pro grammar to SUPPORTED_LANGUAGES [Ryne Andal]
Added 3rd party Jaiva grammar to SUPPORTED_LANGUAGES [Lehlogonolo Poole]
Added 3rd party Liquidsoap grammar to SUPPORTED_LANGUAGES [Romain Beauxis]
Added 3rd party MoonBit grammar to SUPPORTED_LANGUAGES [Kaida-Amethyst]
Added 3rd party Pkl grammar to SUPPORTED_LANGUAGES [Dan Chao]
Added 3rd party RAScript grammar to SUPPORTED_LANGUAGES [Joshua Raphael]
Added 3rd party Veryl grammar to SUPPORTED_LANGUAGES [Naoya Hatta]
Added 3rd party Why3 grammar to SUPPORTED_LANGUAGES [JGalego]
Added 3rd party Xojo grammar to SUPPORTED_LANGUAGES [patricksalo]
Referenced existing 3rd party ES|QL grammar in SUPPORTED_LANGUAGES [Styx0x6]
Core Grammars:
fix(c) only match real
atomic_*type names, not C11 atomic functions, issue #3837 [Mark Xian]- Security
fix(c, cpp) bound the run of type tokens in front of a function name (ReDoS), issue #4362 [Jayesh Bhade]
fix(c, cpp) scope angle-bracket header string to
#include, issue #3505 [Pablo]fix(c, cpp) stop a raw string's closing delimiter from swallowing quotes, issue #3585 [David Pavlovschii]
enh(cmake) add
blockandendblockkeywords [Anonymous Maarten]fix(cmake) only highlight standalone numbers, not digits that begin an identifier (e.g.
3rdparty), issue #4170 [Mark Xian]fix(cpp) require a word boundary before numeric literals so digits inside identifiers aren't highlighted as numbers, issue #4231 [Mark Xian]
fix(crystal) stop treating integer division
//as a regex literal [Zain Asif]enh(csharp) support digit separators in binary literals and numeric type suffixes, and stop highlighting the leading
_of an identifier, issue #4258 [Sarath Francis]enh(css) add corner-shape properties [Hama Tanveer]
enh(css) support six-digit
unicode-rangevalues [Konstantin Baltsat]enh(dart) add highlighting for class and function names [guuido]
enh(dns) highlight registered CAA property tags, issue #4475 [Joey Huang]
enh(dns) improve grammar: character strings, TXT, classes, escapes, addresses [Checconio]
enh(dos) add
batchas an alias, issue #4395 [Hashim Khan]enh(gherkin) update keyword list [Hirse]
enh(gherkin) variables can't contain whitespace [Hirse]
enh(gherkin) docstrings can use backticks [Hirse]
enh(go) recognize binary integer literals [spokodev]
enh(groovy) support underscores in numeric literals [greymoth]
fix(haskell) highlight
wherein GADT and closed type-family declarations, issue #3753 [Konstantin Baltsat]enh(java) improve detection of types, including generic and array types [Hannes Wallnoefer]
enh(javascript) add
selfto built-in variables [Dsaquel]enh(kotlin) add
ktmandktxaliases [DarkMatter-999]fix(leaf) fix bug in Leaf keyword highlighting [Francesco Paolo Severino]
fix(lisp) preserve highlighting after quoted multiplication expressions [arturict]
enh(llvm) support block C-style comments [utam-1]
enh(lua) add Lua 5.5
globalkeyword [Nibiri]fix(markdown) don't treat a
***or___thematic break as the start of bold text, issue #3719 [Mayank Gupta]enh(nsis) enhance NSIS rules [Jan T. Sott]
enh(python) add missing builtins:
aiterandanext(3.10),frozendictandsentinel(3.15) [Hugo van Kemenade]enh(python) correctly highlight
lazy importsyntax from PEP 810 [Peter Bierma]enh(python) support t-strings [Nicolas Le Cam]
fix(ruby) don't treat the scope resolution operator
::as a symbol, issue #4294 [Hashim Khan]enh(rust) add
safekeyword [Frances Wingerter]enh(rust) include the
rawborrow operator in keywords [Shiva Kiran Koninty]enh(rust) parse f16 and f128 literals [usamoi]
fix(rust) allow function invocations whose names start with a keyword [Xia Li-yao]
fix(rust) recognize
\\and\"char-literal escapes so highlighting doesn't leak, issue #4351 [Sarath Francis]enh(shell) match period (.) as part of shell prompt [Ian Wienand]
enh(sqf) update to Arma 3 v2.22 [LouMontana]
- Security
fix(xml) remove recursive sublanguage references to prevent ReDoS petejm
Documentation:
docs(php) explain the difference between
phpandphp-template[Zain Asif]Document LLVM IR in SUPPORTED_LANGUAGES [Jan Schultke]
Document the existing
pwshalias for PowerShell [helpimnotdrowning]List languages with category "common" in SUPPORTED_LANGUAGES [Marc Bernard]
Remind contributors to run
npm i[Proliecan]
Themes:
Added Equinox theme [Griffon Langyer]
Build / Tooling:
(build) allow third-party packages to override default languages [Lysxia]
(build) use Trusted Publishers in the publishing pipeline [allejo]
fix(types) allow RegExp in
Mode.keywords[KJyang-0114]refactor(tools) replace
@colors/colorswith ansis [webdiscus]
CONTRIBUTORS
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.