Skip to content

feat: Add syntax highlighting for functools#38

Open
atisharma wants to merge 1 commit into
hylang:masterfrom
atisharma:feature/add-functools-syntax-2026-05-14
Open

feat: Add syntax highlighting for functools#38
atisharma wants to merge 1 commit into
hylang:masterfrom
atisharma:feature/add-functools-syntax-2026-05-14

Conversation

@atisharma

Copy link
Copy Markdown

functools is a commonly used, syntax highlighting would be more pleasant.

Adds highlighting for common functools names:

  • partial, lru-cache, cache, cached-property, total-ordering
  • wraps, update-wrapper, cmp-to-key
  • singledispatch, singledispatchmethod
  • partialmethod, recursive-repr

functools is a commonly-imported standard library module in Hy,
especially for partial application and decorators.

Adds highlighting for common functools names in kebab-case:
- partial, lru-cache, cache, cached-property, total-ordering
- wraps, update-wrapper, cmp-to-key
- singledispatch, singledispatchmethod
- partialmethod, recursive-repr

Names use kebab-case to match idiomatic Hy style.
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.

1 participant