Flex - indent script uses cindent()

0 views
Skip to first unread message

David Fishburn

unread,
Nov 18, 2008, 10:15:24 PM11/18/08
to vim_use
I am writing an indent script which is nearly identical to the HTML
and JavaScript code.

It is for Flex and actionscript (Has anyone already wrote one?).

Actionscript can be added inside similar tags to Javascript.

<mx:Script>
<![CDATA[
public function one(event:ResultEvent):void {
}

public function two(event:ResultEvent):void {
}
]]>
</mx:Script>

Anyway, the cindent() function on these lines:
public function one(event:ResultEvent):void {
}
returns 8.

Anyway, the cindent() function on the following lines:
public function two(event:ResultEvent):void {
}
returns 0.

I have no idea why that might happen. I have written other indent
scripts where I have code I can debug. But in this case, it is the
cindent() function. So I am not sure where to go to figure this out.

Thanks,
Dave

Reply all
Reply to author
Forward
0 new messages