jcberquist / sublimetext-cfml

CFML (ColdFusion and Lucee) package for Sublime Text
MIT License
115 stars 24 forks source link

CFScript Completions for Custom Tags and Attributes #135

Open michaelalandawson opened 4 years ago

michaelalandawson commented 4 years ago

ColdFusion 2018 (perhaps earlier, too) allows custom tags to be specified in cfscript blocks.

Tag-based example:

<cf_renderpage title="[title goes here]">lorem</cf_renderpage>

The above equates to the following cfscript examples:

cf_renderpage();

cf_renderpage(title="[title goes here]", content="[content goes here]");

cf_renderpage(title: "[title goes here]", content: "[content goes here]");

Can the CFML package be modified to generate completions for custom tags and attributes within cfscript blocks? The custom tags and attributes should already be indexed. The three characters, "cf_", could be used to trigger the completion list.

Thanks!

jcberquist commented 4 years ago

Makes sense to me. When I have some time I will see what I can do.

michaelalandawson commented 4 years ago

Thank you.