Skip to content

Add CFML (ColdFusion) support via tree-sitter-cfml #1762

Open
ghedwards wants to merge 2 commits into
Graphify-Labs:v8from
cfmleditor:claude/cfml-tree-sitter-support-2noadt
Open

Add CFML (ColdFusion) support via tree-sitter-cfml #1762
ghedwards wants to merge 2 commits into
Graphify-Labs:v8from
cfmleditor:claude/cfml-tree-sitter-support-2noadt

Conversation

@ghedwards

Copy link
Copy Markdown

No description provided.

claude added 2 commits July 9, 2026 09:40
Extracts components, functions, properties, includes/imports, and calls from
.cfc/.cfm (tag- and script-syntax) and .cfs, using the cfml/cfscript
tree-sitter grammars from tree-sitter-cfml. Handles the grammar's quirks
directly: a top-level script-style `component { }`/`interface { }` block is
opaque to the cfml grammar, so it's transparently re-parsed with cfscript;
nested <cfscript> blocks in tag-based files are re-parsed and merged in with
line offsets; self-closing tags (cfproperty/cfargument/cfinclude/cfimport/...)
don't expose their keyword as a tree node, so it's recovered from raw text.
Cross-file component references (extends/implements/createObject/new) resolve
dotted paths to files on disk, mirroring the existing Pascal resolver.

tree-sitter-cfml isn't published to PyPI yet, so it isn't declared as a pip
extra (that broke uv's whole-project lockfile resolution, since uv resolves
all extras together and a nonexistent PyPI package fails hard). The extractor
still works standalone via its own try/except ImportError guard for anyone
who installs the grammar manually; pyproject.toml has a NOTE for wiring up
the `cfml` extra once it's published.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FNVnRRvKoij8GkPx2A3vic
tree-sitter-cfml 0.26.30 is now on PyPI with prebuilt wheels, so declare the
`cfml` extra properly instead of leaving it undeclared. Re-locks cleanly
through PyPI directly, no git-source workaround needed.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FNVnRRvKoij8GkPx2A3vic
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