Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump Chroma to v2 #918

Merged
merged 1 commit into from
Aug 29, 2023
Merged

Bump Chroma to v2 #918

merged 1 commit into from
Aug 29, 2023

Conversation

gandarez
Copy link
Member

@gandarez gandarez commented Aug 24, 2023

This PR upgrades Chroma to v2. All languages implemented in the forked Chroma were migrated to wakatime-cli and fixed to work with this version. To get it released soon I temporary changed go mod to use my forked version of Chroma with all merged changes and it should be removed as soon as it gets a new public version.

@gandarez gandarez self-assigned this Aug 24, 2023
@gandarez gandarez changed the title [WIP] Migrate Chroma to v2 Migrate Chroma to v2 Aug 27, 2023
@gandarez gandarez changed the title Migrate Chroma to v2 Bump Chroma to v2 Aug 27, 2023
Migrate dependency detection to Chroma v2

Add doctype package

Add xml package

Fix language package for Chroma v2

Add ColdfusionHTML lexer

Add Crontab lexer

Add Delphi lexer

Add Gosu lexer

Add Lasso lexer

Add Less lexer

Add Liquid lexer

Add Mustache lexer

Add Pawn lexer

Add SketchDrawing lexer

Add Slim lexer

Add XAML lexer

Add XSLT lexer

Fix priority for ApacheConf lexer as it conflicts with ISCdhcpd

alecthomas/chroma#772 (comment)

Add Pug lexer

Add SublimeTextConfig lexer

Add SWIG lexer

Do not allow re-register a lexer

Test languages already registered in Chroma

Add Marko lexer

Add RPMSpec lexer

Add Objective-J lexer

port custom lexers from forked chroma

fix all but one todo

implement name method for lexers

add line breaks

fix linter

typo

Add missing lexer tests A..H

add tests

more tests

add lexers g-o

lexer tests for lexers a-f

fix linter

fix get lexer by name typos

Fix tests

Fix tests

Update go mod to temporary use Chroma fork

Fix linting

remove reference to Chroma v1

Fix dependencies parser

Remove unnecessary lint comments

Fix Forth analyse text on Windows

Register all custom lexers

Replace fixed strings with language constants

Move lexers to lexer package

Use languages from heartbeat package
@gandarez gandarez merged commit 141a8b7 into develop Aug 29, 2023
17 checks passed
@gandarez gandarez deleted the feature/chroma-v2 branch August 29, 2023 18:22
@alanhamlett alanhamlett mentioned this pull request Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants