11.10.0
版本发布时间: 2024-07-15 08:55:37
highlightjs/highlight.js最新发布版本:11.10.0(2024-07-15 08:55:37)
Sorry for the wait, this one is a doozie, thanks to all the contributors who made it possible!
CAVEATS / POTENTIALLY BREAKING CHANGES
[!IMPORTANT] This version drops support for Node 16.x, which is no longer supported by Node.js.
Core Grammars:
- enh(typescript) add support for
satisfies
operator Kisaragi Hiu - enc(c) added more C23 keywords Melkor-1
- enh(json) added jsonc as an alias BackupMiles
- enh(gml) updated to latest language version (GML v2024.2) gnysek
- enh(c) added more C23 keywords and preprcoessor directives Eisenwave
- enh(js/ts) support namespaced tagged template strings Aral Balkan
- enh(perl) fix false-positive variable match at end of string Josh Goebel
- fix(cpp) not all kinds of number literals are highlighted correctly Lê Duy Quang
- fix(css) fix overly greedy pseudo class matching Bradley Mackey
- enh(arcade) updated to ArcGIS Arcade version 1.24 Kristian Ekenes
- fix(typescript): params types Mohamed Ali
- fix(rust) fix escaped double quotes in string Mohamed Ali
- fix(rust) fix for r# raw identifier not being highlighted correctly. JaeBaek Lee
- enh(rust) Adding union to be recognized as a keyword in Rust. JaeBaek Lee
- fix(yaml) fix for yaml with keys having brackets highlighted incorrectly Aneesh Kulkarni
- fix(csharp) add raw string highlighting for C# 11. Tara
- fix(bash) fix # within token being detected as the start of a comment Felix Uhl
- fix(python) fix
or
conflicts with string highlighting Mohamed Ali - enh(python) adds a scope to the
self
variable [Lee Falin][] - enh(delphi) allow digits to be omitted for hex and binary literals Jonah Jeleniewski
- enh(delphi) add support for digit separators Jonah Jeleniewski
- enh(delphi) add support for character strings with non-decimal numerics Jonah Jeleniewski
- fix(javascript) incorrect function name highlighting CY Fung
- fix(1c) fix escaped symbols "+-;():=,[]" literals Vitaly Barilko
- fix(swift) correctly highlight generics and conformances in type definitions Bradley Mackey
- enh(swift) add package keyword Bradley Mackey
- fix(swift) ensure keyword attributes highlight correctly Bradley Mackey
- fix(types) fix interface LanguageDetail > keywords Patrick Chiu
- enh(java) add
goto
to be recognized as a keyword in Java Alvin Joy - enh(bash) add keyword
sudo
Alvin Joy - fix(haxe) captures
new
keyword without capturing it within variables/class names Cameron Taylor - fix(go) fix go number literals to accept
_
separators, add hex p exponents Lisa Ugray - enh(markdown) add entity support David Schach TaraLei
- enh(css) add
justify-items
andjustify-self
attributes Vasily Polovnyov - enh(css) add
accent-color
,appearance
,color-scheme
,rotate
,scale
andtranslate
attributes Carl Räfting - fix(fortran) fixes parsing of keywords delimited by dots Julien Bloino
- enh(css) add
select
,option
,optgroup
,picture
andsource
to list of known tags Vasily Polovnyov - enh(css) add
inset
,inset-*
,border-start-*-radius
andborder-end-*-radius
attributes Vasily Polovnyov - enh(css) add
text-decoration-skip-ink
,text-decoration-thickness
andtext-underline-offset
attributes Vasily Polovnyov
New Grammars:
- added 3rd party CODEOWNERS grammar to SUPPORTED_LANGUAGES nataliia-radina
- added 3rd party Luau grammar to SUPPORTED_LANGUAGES Robloxian Demo
- added 3rd party ReScript grammar to SUPPORTED_LANGUAGES Paul Tsnobiladzé
- added 3rd party Zig grammar to SUPPORTED_LANGUAGES [Hyou BunKen][]
- added 3rd party WGSL grammar to SUPPORTED_LANGUAGES Arman Uguray
- added 3rd party Unison grammar to SUPPORTED_LANGUAGES Rúnar Bjarnason
- added 3rd party Phix grammar to SUPPORTED_LANGUAGES PeteLomax
- added 3rd party Mirth grammar to SUPPORTED_LANGUAGES Sierra
- added 3rd party JSONata grammar to SUPPORTED_LANGUAGES Vlad Dimov
Developer Tool:
- enh(tools): order CSS options picklist David Schach
- enh(tools): remove duplicate CSS options David Schach
- (typescript): deprecate old
highlight
API Misha Kaletsky
Themes:
- Added
1c-light
theme a like in the IDE 1C:Enterprise 8 (for 1c) Vitaly Barilko