11.9.0
版本发布时间: 2023-10-09 11:54:28
highlightjs/highlight.js最新发布版本:11.10.0(2024-07-15 08:55:37)
Version 11.9.0
CAVEATS / POTENTIALLY BREAKING CHANGES
- Drops support for Node 14.x, which is no longer supported by Node.js.
- In the
node
buildstyles/*.css
files now ship un-minified with minified counterparts as:styles/*.min.css
mvorisek (this makes things consistent with ourcdn
builds)
Parser:
- (enh) prevent re-highlighting of an element [joshgoebel][]
- (chore) Remove discontinued badges from README Bradley Mackey
- (chore) Fix build size report Bradley Mackey
New Grammars:
- added 3rd party Iptables grammar to SUPPORTED_LANGUAGES Checconio
- added 3rd party x86asmatt grammar to SUPPORTED_LANGUAGES gondow
- added 3rd party riscv64 grammar to SUPPORTED_LANGUAGES aana-h2
- added 3rd party Ballerina grammar to SUPPORTED_LANGUAGES Yasith Deelaka
Core Grammars:
- fix(rust) added negative-lookahead for callable keywords
if
while
for
[Omar Hussein][] - enh(armasm) added
x0-x30
andw0-w30
ARMv8 registers Nicholas Thompson - enh(haxe) added
final
,is
,macro
keywords and$
identifiers Robert Borghese - enh(haxe) support numeric separators and suffixes Robert Borghese
- fix(haxe) fixed metadata arguments and support non-colon syntax Robert Borghese
- fix(haxe) differentiate
abstract
declaration from keyword Robert Borghese - fix(bash) do not delimit a string by an escaped apostrophe [hancar][]
- enh(swift) support
macro
keyword Bradley Mackey - enh(swift) support parameter pack keywords Bradley Mackey
- enh(swift) regex literal support Bradley Mackey
- enh(swift)
@unchecked
and@Sendable
support Bradley Mackey - enh(scala) add using directives support
//> using foo bar
[Jamie Thompson][] - fix(scala) fixed comments in constructor arguments not being properly highlighted Isaac Nonato
- enh(swift) ownership modifiers support Bradley Mackey
- enh(nsis) Add
!assert
compiler flag [idleberg][] - fix(haskell) do not treat double dashes inside infix operators as comments [Zlondrej][]
- enh(rust) added
eprintln!
macro qoheniac - enh(leaf) update syntax to 4.0 Samuel Bishop
- fix(reasonml) simplify syntax and align it with ocaml jchavarri
- fix(swift)
warn_unqualified_access
is an attribute Bradley Mackey - enh(swift) macro attributes are highlighted as keywords Bradley Mackey
- enh(stan) updated for version 2.33 (#3859) Brian Ward
- fix(css) added '_' css variable detection Md Saad Akhtar
- enh(groovy) add
record
andvar
as keywords Guillaume Laforge
Developer Tool:
- (chore) Update dev tool to use the new
highlight
API. Shah Shabbir Ahmmed - (enh) Auto-update the highlighted output when the language dropdown changes. Shah Shabbir Ahmmed