Skip to content

Conversation

@serhack
Copy link
Contributor

@serhack serhack commented Nov 10, 2022

No description provided.

@alecthomas
Copy link
Owner

alecthomas commented Nov 10, 2022

Thanks for the PR! There are tests for the lexer if you'd like to extend them, to verify everything is working. You can run them with:

./bin/go test ./lexers/...

To update the test, edit ./lexers/tesdata/java.actual to add the appropriate syntax, and run the above again. It should fail because the expected state is now different.

If the actual result looks correct run the following to finalise it:

RECORD=true ./bin/go test ./lexers
@serhack
Copy link
Contributor Author

serhack commented Nov 10, 2022

Thanks, those comments are pure gold for me! :) Honestly I feel like a little bit of challenge understanding how to contribute to Chroma but it's nice to have such welcoming messages!

@alecthomas alecthomas merged commit a242abf into alecthomas:master Sep 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants