Skip to content

Conversation

@huth-stacks
Copy link
Contributor

@huth-stacks huth-stacks commented Oct 30, 2025

This PR adds support for recognizing the Clarity language, which is the smart contract language for the Stacks crypto ecosystem (https://clarity-lang.org/)

Summary

  • add .clar extension mapping and Clarity language definition
  • strip full-line and inline Clarity comments
  • add regression fixture covering Clarity code counts

Testing

  • eval "$(perl -I/Users/alexanderhuth/perl5/lib/perl5 -Mlocal::lib)" && make test

- Add Clarity language definition with ;; comment syntax
- Add extension mapping for .clar files
- Add filters for remove_matches (^\s*;;) and remove_inline (;;.*$)
- Set 3rd gen scale factor to 1.47 (similar to Scheme)
- Add test fixture clarityfiles.clar
- Add test case in Unix/t/00_C.t
- Update README.md language list
@AlDanial AlDanial merged commit ea9dffe into AlDanial:master Oct 31, 2025
1 check passed
@AlDanial
Copy link
Owner

thanks!

@huth-stacks
Copy link
Contributor Author

Thank you!

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.

2 participants