mirror of
https://github.com/getpaseo/paseo.git
synced 2026-12-01 04:36:26 +00:00
* feat(highlight): highlight diff and patch fences and files Register CodeMirror's legacy diff mode for .diff and .patch files and diff/patch code fences, mapping inserted/deleted tokens to diffAddition/diffDeletion roles and stripping legacy trailing-whitespace error prefixes so CodeMirror emits no unknown-tag warnings. Co-authored-by: Hyacinthe Malaspina <malaspina.hyacinthe@gmail.com> * feat(highlight): add Ruby syntax highlighting Register @codemirror/legacy-modes ruby via StreamLanguage for rb, rbw, rake, gemspec, ru, jbuilder, podspec and thor, plus extensionless Ruby files (Gemfile, Rakefile, Guardfile, Capfile, Podfile, Vagrantfile, ...). * feat(highlight): add Kotlin syntax highlighting for .kt/.kts files Kotlin files previously rendered as plain text in diffs, the read-only source panel, and the editor because the extension map in @getpaseo/highlight had no entry for kt/kts. Register the kotlin stream parser from @codemirror/legacy-modes/mode/clike, the same package already used for Swift and Dart. * test(highlight): assert Kotlin token styles in highlightCode Follow-up to review feedback: the parsers tests only checked that kt/kts are registered. Add a Kotlin case to the highlightCode suite, mirroring the Swift and Dart cases, asserting keyword ('class', 'val'), type ('String'), and string token styles. Fails on main without the parser registration, passes with it. * feat(highlight): add TOML syntax highlighting * feat(highlight): add remaining legacy-mode languages and fence aliases Register SQL, Lua, Protobuf, PowerShell, Groovy/Gradle, Scala, CMake (including CMakeLists.txt), Properties/INI, R, Perl, and LaTeX/TeX from @codemirror/legacy-modes, and add fence alias parity (including shell, ruby, kotlin, powershell/pwsh, protobuf, perl, and latex) in HighlightedCodeBlock. Co-authored-by: Maxime Conan <maximeconan@MacBook-Pro-de-Maxime.local> * fix(highlight): unify diff token colors and support binary diff frames Append diffAddition and diffDeletion to DIFF_HIGHLIGHT_STYLES so Changes panel binary diff frames preserve diff colors for .diff/.patch files while older clients safely decode unknown indices as null. Unify syntaxTokenStyles onto theme.colors.syntax and tune light syntax theme diff colors to >=4.0:1 contrast on code surfaces. --------- Co-authored-by: Hyacinthe Malaspina <malaspina.hyacinthe@gmail.com> Co-authored-by: Karol Bąk <kukicola@gmail.com> Co-authored-by: Anton Prokhorov <anton.prokhorov@jetbrains.com> Co-authored-by: chandlerok <chandleroking@gmail.com> Co-authored-by: Maxime Conan <maximeconan@MacBook-Pro-de-Maxime.local>
@getpaseo/protocol
Shared Paseo protocol schemas, codecs, and wire types.
Stability
This package is public so Paseo's published packages can depend on it cleanly. It is not a stable public API yet.
Schemas, exports, wire helpers, and types may change or disappear in any release without advance notice. Use it outside Paseo at your own risk until the package is explicitly documented as stable.