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

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to