github alecthomas/chroma v3.0.0-alpha.6

53 minutes ago

Changelog

  • 7839395 fix(formatters): preserve leading commas after IRC foreground colors (#1514)
  • c6cc90a fix(ci): approve fork CI runs awaiting approval
  • 186e80f fix(styles): align tokyonight styles with folke/tokyonight.nvim (#1522)
  • 735c62e fix(lexers): recognize CMake bracket comments (#1520)
  • 33512c7 fix(lexers): keep escaped quotes inside CMake arguments (#1519)
  • 665f0a6 fix(lexers): keep CMake bracket arguments intact (#1518)
  • 547de11 fix(lexers): keep escaped separators in Java properties keys (#1517)
  • 407cfc0 fix(lexers): preserve literal hashes in SSH config arguments (#1516)
  • 8a9c557 fix(lexers): recognize GraphQL integer and float literals (#1515)
  • 33f5b05 fix(lexers): match whole GraphQL declaration keywords (#1513)
  • 0897f2f fix(lexers): keep GraphQL block string contents together (#1512)
  • 9609217 fix(lexers): keep Java properties separate after escaped backslashes (#1511)
  • e740ad4 fix(lexers): recognize equals after SSH Host and Match directives (#1510)
  • ffe3fe9 fix(lexers): highlight Git config variables adjacent to section headers (#1509)
  • a878783 fix(lexers): match Luau long comment delimiters (#1506)
  • ba73267 fix(lexers): recognize escapes in Luau strings (#1505)
  • 20865fa fix(lexers): recognize Luau long bracket strings (#1504)
  • 2d34385 fix(lexers): handle escapes in protobuf strings and qualified extends (#1503)
  • c3677aa Recover iterator panics in HTML and SVG formatters (#1500)
  • 33b2cee feat: add mdx lexer (#1497)
  • c549397 Fix PromQL quoted and raw string highlighting (#1496)
  • 0370886 fix(lexers): recognize colons in PromQL metric names (#1495)
  • 4adeb91 fix(lexers/tlaplus): support Unicode TLA+ syntax (#1494)
  • 937b54a feat(lexers): add Quint and TLA+ lexers (#1493)
  • c6d4c6e fix(lexers): highlight Scala 3 enum, export, given and then (#1491)
  • 08dd759 fix(lexers): highlight Elixir with, reraise, defguard and defoverridable (#1490)
  • e7fce9c fix(lexers): highlight missing C# contextual keywords (#1489)
  • d8363d8 fix(lexers): highlight missing Dart keywords (#1488)
  • d1a9a2e fix(lexers): highlight satisfies and accessor as TypeScript keywords (#1487)
  • b7333ef fix(lexers): highlight enum, readonly and fn as PHP keywords (#1486)
  • 03dae40 fix(lexers): recognize Swift hexadecimal floats (#1484)
  • b92eee5 fix(lexers): recognize Ruby Unicode character literals (#1483)
  • 1770b31 fix(lexers): recognize digit separators in Dart (#1482)
  • a43e6c3 fix(lexers): recognize leading-dot numbers in Dart (#1480)
  • 9854b08 fix(lexers): accept underscores in Rust Unicode escapes (#1481)
  • 1831f93 AQL: Add keywords and functions (ArangoDB v4.0), fix range lexing (#1479)
  • 8af8a72 fix(lexers): recognize repeated Java Unicode escape markers (#1478)
  • efc294d fix(lexers): recognize Java octal character escapes (#1477)
  • cf9feee fix(lexers): accept whitespace in Java text-block openers (#1476)
  • 36474dc fix(lexers): preserve Rust numbers before member-access dots (#1475)
  • 2c145ee fix(lexers): handle line continuations in Python f-strings (#1474)
  • e302e04 fix(lexers): recognize Unicode private-name characters (#1473)
  • 013fe34 fix(lexers): recognize private members in JSX (#1472)
  • 1ba54e3 fix(lexers): preserve Kotlin declaration names after comments (#1471)
  • 9baa40d fix(lexers): match Rust built-in lifetimes as whole names (#1470)
  • ff0ba0f fix(lexers): preserve Kotlin raw-string interpolation after quotes (#1469)
  • ff85548 fix(lexers): keep Rust fractional floats whole before ranges (#1468)
  • 9912972 fix(lexers): anchor the Ruby end marker to its own line (#1467)
  • 095c905 fix(lexers): avoid duplicating percent-string whitespace delimiters (#1466)
  • f94a865 fix(lexers): recognize Ruby decimal fractions (#1465)
  • cc0ea25 fix(lexers): recognize Ruby explicit octal and decimal prefixes (#1464)
  • 7cab95a fix(lexers): accept uppercase Ruby hexadecimal and binary prefixes (#1463)
  • 55cbc34 fix(lexers): recognize leading-dot JavaScript and TypeScript floats (#1462)
  • f6a9ce1 fix(lexers): keep JavaScript and React decimal exponents together (#1461)
  • 56ea0d7 fix(lexers): accept uppercase hexadecimal prefixes in C-family lexers (#1460)
  • b554f16 fix(lexers): recognize C and C++ hexadecimal floats (#1459)
  • 6301363 fix(lexers): allow dollar signs in JavaScript and TypeScript private names (#1458)
  • d95cb22 fix(lexers): recognize Go functions with non-ASCII names (#1456)
  • 2abfb8c fix(lexers): recognize Unicode identifiers in Swift (#1457)
  • 049016e fix(lexers): accept Kotlin anonymous object delimiters (#1455)
  • a3fa74c fix(lexers): keep Swift range and member dots out of floats (#1454)
  • 48bff90 fix(lexers): recognize digit separators in C++ decimal floats (#1453)
  • eb9665d fix(lexers): keep underscores in Kotlin identifier continuations (#1452)
  • 359081a fix(lexers): accept non-ASCII letters at the start of Rust names (#1451)
  • fec7e22 fix(lexers): allow combining marks in Python identifier continuations (#1450)
  • 9ba2d5d fix(svg): escape the configured font family into the SVG document (#1381)
  • 71fd939 fix(lexers): lex a comment that follows * in Arduino and Objective-C (#1444)
  • 10bd65f fix(lexers): recognize comments in Python f-string expressions (#1449)
  • bad388c fix(lexers): allow combining marks in JavaScript identifiers (#1443)
  • bdfec32 fix(ci): check auto-merge eligibility with Chroma's parsers
  • 6b9adef fix(ci): parse only lexer config in auto-merge
  • a86b598 fix(lexers): keep nested Kotlin comments inside the outer comment (#1448)
  • 8cf6f3e fix(lexers): accept escaped Kotlin identifiers in expressions (#1447)
  • d5f2588 fix(lexers): accept Kotlin destructuring declarations (#1446)
  • 5bc8cc7 fix(lexers): lex TypeScript identifiers that start with a non-ASCII letter (#1445)
  • 996986d fix(lexers): lex @$ interpolated verbatim strings in C# (#1442)
  • db2dd22 fix(lexers): lex a comment that follows * in C and C++ (#1441)
  • 6e05ba9 build: replace Just with bit and lint before push
  • 3ac24c8 build: upgrade bit to 0.57.0
  • 685fa14 perf: build words tries five times faster
  • 38ca9fb perf: store words tries as double-array tries
  • d8f3155 fix(lexers): match the longest word in operator and keyword lists
  • 81cfe5f refactor(lexers): use words for keyword lists
  • 99d8cb2 refactor(lexers): move Emacs Lisp builtin remapping to XML
  • d7fa8df refactor(lexers): move Common Lisp builtin remapping to XML
  • e407e5d feat: add words attribute to XML lexer rules
  • e7f809f refactor(lexers): move Caddyfile Directives lexer to XML
  • 2856b19 refactor(lexers): move Caddyfile lexer to XML
  • 3723dfc refactor(lexers): move reStructuredText lexer to XML
  • e5ef5f4 refactor(lexers): drop Go TypoScript lexer shadowing its XML
  • 93be82c refactor(lexers): move Genshi lexer to XML
  • 1241b35 refactor(lexers): move Genshi HTML lexer to XML
  • b621cfc refactor(lexers): move Genshi Text lexer to XML
  • 2ef1d20 refactor(lexers): move Gemtext lexer to XML
  • f37ff3e refactor(lexers): move Zed analyser to XML
  • d5183a7 refactor(lexers): move Markdown lexer to XML
  • 47302b7 ci: harden auto-merge eligibility and approve CI
  • 7b41c9f feat: add Hemlock lexer (#1434)
  • 18c6f62 ci: auto-merge lexer, style and testdata-only PRs
  • a8dffae regexp: stop zero-width push/pop cycles in Iterator (#1382)
  • a7c406a fix(lexers): stop emitting error tokens for newlines in CMake (#1415)
  • a7f4121 fix(lexers): treat YAML plain scalars starting with an indicator as literals (#1413)
  • 033c5c1 fix(lexers): stop multi-line Vue directive values at the closing quote (#1419)
  • 9a4129c fix(lexers): highlight type keys in TypeScript and TSRX (#1420)
  • 1f2ebe7 Update Catppuccin styles (#1426)
  • 9dccd37 feat(lexers): bring the Swift lexer up to Swift 6.2 (#1435)
  • e38a26d fix(lexers): end TOML literal strings at the first single quote (#1440)
  • fb2afb4 fix(lexers): lex hyphenated JSX attribute names in the react lexer (#1439)
  • 3937769 perf: range over emitter tokens instead of iter.Pull (#1437)
  • 8c620a9 fix: stop long tokens failing on regexp2's backtracking stack limit (#1425)
  • a713154 Add Topaz and Lispex XML lexers (#1423)
  • 5863ba9 fix(lexers): recognize block and EOF comments in JSON (#1424)
  • cdf51b1 fix(lexers): lex Modelica strings, brackets and colons (#1421)
  • c0a9290 chore(deps): update all non-major dependencies (#1358)
  • 25d936b fix(lexers): accept all ECMAScript regex flags in JavaScript and TypeScript (#1417)
  • 0758ffb fix(lexers): match all TOML date and time forms (#1418)
  • 6aa114d fix(lexers): stop emitting error tokens for newlines in reStructuredText (#1408)
  • 4edd4e3 feat(lexers): add Blade lexer (#1399)
  • d0bc194 fix: remove stale aliases when replacing a lexer (#1409)
  • c30c0cc feat(lexers): add Gooo source highlighting (#1410)
  • 635b766 fix(lexers): recognize prefixed Go imaginary literals (#1411)
  • 43fe615 feat(lexers): add Verse lexer (#1412)
  • ef614fb fix(lexers): lex make directives instead of emitting error tokens (#1407)
  • 35af219 feat(lexers): add docopt lexer (#1368)
  • bf14755 refactor(lexers): move Markless lexer to XML
  • 0e4f721 fix(lexers): keep double slashes in YAML scalars and keys (#1374)
  • 94c1502 feat(gitconfig): added lexer to support .gitconfig file syntax (#1361)
  • 8d92cdc feat(styles): add ZenBlue theme (#1362)
  • ebb642e fix(lexers): latest Godot 4.7 GDScript features (#1364)
  • 1ab5370 Add 1C Enterprise (BSL) lexer (#1366)
  • 2e24bd0 fix(lexers): Svelte attribute with an expression value makes HTML emit an error token (#1386)
  • d1017b3 feat(sshconfig): added a lexer to support sshconfig (#1369)
  • 86bbe8d feat(lexers): add Slim lexer for *.slim templates (#1367)
  • 4666236 fix(lexers): recognize Rust raw identifiers in declarations (#1373)
  • fd43488 fix(lexers): highlight signed and dot-leading YAML numbers (#1372)
  • c9ba635 fix(lexers): lex JavaScript/TypeScript private identifiers (#name) (#1385)
  • e17ffc9 chore(deps): update dependency binaryen to v133 (#1390)
  • b1ea9ae fix(lexers): allow underscores in Go decimal float and imaginary literals (#1393)
  • 0129b0f fix(lexers): recognize .cppm files as C++ (#1395)
  • 4f04540 fix(lexers): recognize TypeScript binary, octal and exponent literals (#1396)
  • 450e739 feat(lexers): add DBML lexer (#1400)
  • 86494c6 feat(lexers): add G-code lexer (#1401)
  • e808c58 feat(lexers): add Pkl lexer (#1404)
  • ca83f76 chore(deps): update dependency hyperfine to v2 (#1403)
  • 26ba39e Update Core lexer for added keywords of and with, removed keyword mod (#1405)
  • 0ddc058 fix(formatters/html): give line-number-table rows their own flex box (#1371)
  • e415924 fix(lexers): recognize Go octal, binary and hex float literals (#1387)
  • 890b503 Add Isabelle lexer (#1383)
  • 8d35032 fix(lexers): recognize Python imaginary literals (#1384)
  • 4b55271 feat(lexers): add TSRX lexer (#1375)
  • 8d09aee fix(formatters): emit the token background in mirc16m (#1365)
  • b6c612d fix(lexers): let GDScript win the *.gd filename match (#1363)
  • 20de8d8 feat(lexers): add InfluxDB line protocol lexer (#1359)
  • 5e06caf Document comment rules to keep code self-explanatory
  • 9991017 refactor: remove lexer serialization
  • 2e40619 refactor: stream delegated tokens
  • 609af80 refactor: preserve token iterator semantics
  • 8555648 chore: keep lexer metadata current
  • 2c83ee3 perf(lexers): build the registry from generated metadata instead of parsing XML at init (#1356)
  • 3af0c4c perf(styles): parse embedded styles lazily (#1354)
  • cf4a8fb perf(svg): defer embedded font encoding until output is written (#1355)
  • 5274f9a chore(deps): update dependency binaryen to v132 (#1351)
  • c9b4f2c fix: four lexers push onto states that do not exist (#1350)
  • 27148f2 fix(lexers): don't read past the end on an unterminated Raku comment (#1345)
  • 9943aa7 fix(cmd/chroma): the module does not build at HEAD (#1347)
  • 0ee0919 fix(lexers): add F# analysis pattern to prevent GDScript3 misidentifi… (#1342)
  • 16a782f chore(deps): update all non-major dependencies (#1341)
  • 75917eb feat(lexers): checkboxes in ordered lists for org-mode (#1338)
  • ab7c933 Add support for modern IRC formatting (#1343)
  • f3fe597 fix(lexers): prevent inline markup from spanning lines in org-mode (#1339)
  • 4e3fbfe chore(deps): update dependency binaryen to v131 (#1334)
  • 247265e chore(deps): update cashapp/activate-hermit digest to cea9af7 (#1320)
  • 4fc2eb1 feat(lexers): intermediate checkbox for org-mode (#1326)
  • 06711fb feat(lexers): add Cedar lexer (#1327)
  • 719ab58 html: Emit all token rules with WithAllClasses(true) (#1336)
  • 1aa77eb chore(deps): update all non-major dependencies (#1331)
  • e595bcf Add missing counterpart attribute to tomorrow-night styles (#1337)
  • f99b325 Add the 'Tomorrow' theme (#1335)
  • a14b489 fix(docker): tokenize newlines as whitespace instead of Error (#1332)
  • bf9adff feat(lexers): add Plan 9 rc lexer (#1329)
  • 9743440 feat(lexers): add Garden lexer (#1322)
  • cb53b46 chore(deps): update all non-major dependencies (#1323)

Don't miss a new chroma release

NewReleases is sending notifications on new releases.