jcberquist / commandbox-cfformat

A CommandBox module for formatting CFML component files.
MIT License
21 stars 10 forks source link

Method Multiline formatting/highlighting when inital element is not a method #152

Closed mjclemente closed 1 year ago

mjclemente commented 1 year ago

Ok, so, admittedly, this is a strange one and I'm not sure the best way to handle it (or if you even need bother).

The method_call.chain.multiline is wonderful, but in VSCode, when the first element isn't a method, the IDE syntax highlighting gets borked. I encountered this while using CFMigrations/SchemaBuilder. Here's what it looks like: image

In that example, if table were table(), highlighting would be fine.

I'd like the option to leave that first chained method on the same line, like this: image

Like I said, this might not be worth your bother, but I thought it worth pointing out, because it was bugging me and I couldn't find a way to resolve it with the current options.

Thanks for the awesome project!

mjclemente commented 1 year ago

Whelp - not an issue. The issue is the handling of the keyword table - all other variables are highlighted correctly.