npm highlight.js 11.12.0
v11.12.0 - Summer, hot and rainy.

5 hours ago

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
  • 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 block and endblock keywords 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-range values 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 batch as 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 where in 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 self to built-in variables Dsaquel
  • enh(kotlin) add ktm and ktx aliases 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 global keyword 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: aiter and anext (3.10), frozendict and sentinel (3.15) Hugo van Kemenade
  • enh(python) correctly highlight lazy import syntax 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 safe keyword Frances Wingerter
  • enh(rust) include the raw borrow 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
  • fix(xml) remove recursive sublanguage references to prevent ReDoS petejm

Documentation:

  • docs(php) explain the difference between php and php-template Zain Asif
  • document LLVM IR in SUPPORTED_LANGUAGES Jan Schultke
  • document the existing pwsh alias for PowerShell helpimnotdrowning
  • list languages with category "common" in SUPPORTED_LANGUAGES Marc Bernard
  • remind contributors to run npm i Proliecan
  • fix typos in README.CDN.md Zitrone

Themes:

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/colors with ansis webdiscus
  • chore: dependency updates

CONTRIBUTORS

Don't miss a new highlight.js release

NewReleases is sending notifications on new releases.