Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cfscript component #1

Open
Fridus opened this issue May 19, 2014 · 10 comments
Open

cfscript component #1

Fridus opened this issue May 19, 2014 · 10 comments

Comments

@Fridus
Copy link

Fridus commented May 19, 2014

Not working with cfscript component { } in my Application.cfc

@nemoDreamer
Copy link
Owner

A member on my team has the same issue, but it is strangely working for me...?!

This is a straight port from the old TextMate bundle, which still had bugs for cfscript support. If i had more time, I would have ported the better SublimeText bundle :(

The only problem i'm getting is that it's rendering the cfscript tag as "cfscriptscript" (?!)

I might track down cfscript support, but in the meantime, feel free to contribute a pull-request.
Sorry if this sounds dismissive, it is not my intention!!!

@nemoDreamer
Copy link
Owner

A fellow Belgian, I see ;)

@Fridus
Copy link
Author

Fridus commented May 19, 2014

@nemoDreamer :) , from ?

Is not in a <cfscript /> tag.

My file:

component {
...
}

@nemoDreamer
Copy link
Owner

Ah, yes…
the TextMate and SublimeText bundles were never capable of supporting pure
CF Script…
If the extension is identical, the bundle won’t be able to tell that you
want script vs. tag, sorry.
The solution that the SublimeText bundle had was to allow you to load a
"CFComponent Script” syntax by exception.

@nemoDreamer
Copy link
Owner

Oh: and I'm one of those mixed-up germanophone Belgians from Eupen, but w/ a francophone mother from Liège ;)

@Fridus
Copy link
Author

Fridus commented May 19, 2014

I use sublime text since one year And I would try atom :)
So, is it possible to fix this bug ?
Which you prefer? Atom? Sublime ? Textmate?

@justinwhall
Copy link

Hey thanks nemoDreamer. Also a Subllime user and write CF a fair amount. I'd like to see more complex highlighting. I'm not great with these cson files but see what I can do to contribute.

Thanks again.

@nemoDreamer
Copy link
Owner

Thanks, @justinwhall!

@Fridus, since the developers behind SublimeText and TextMate have gone AWOL and aren't planning to go open-source, I'd say Atom is definitely the most promising choice. It'll just take a while for packages to become mature enough...

Since I work for a company that still uses CF, I've been using the SublimeText bundle for a couple of years, and it's much better than the TexMate one. Sadly, porting from SublimeText to Atom is way more complicated... 😢

@danielingegneri
Copy link

Are there two separate issues here? I came to report a problem with the <cfscript> tag when used in an ordinary CFM file. As @nemoDreamer described, a closing </cfscript> tag actually appears as </cfscriptcfscript>, and the cursor actually doesn't go past the end of what would be a "correct" closing tag. Just a visual bug. Is this what the original poster is describing, or should we raise a new issue? Dan

@nemoDreamer
Copy link
Owner

Sorry, folks: I'll be posting a "no longer maintained" change to the README soon, as I no longer work for a company that develops in CF. I'd only created this port so that my back-end dev colleagues could hop onto the Atom wagon...

I recommend you switch to https://github.com/atuttle/atom-language-cfml, which is actively maintained, and they have fixed this nasty bug there already!

Thanks for being active here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants