I am writing an indent script for Flex which has similar HTML and Javascript.
So the indent script is pretty simple.
If inside a <mx:Script> tag"
return cindent(a:lnum)
else
" indent like XML
endif
In my other indent scripts I have never used cindent() before.
In my sample app, I have:
cinoptions=
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
private function update():void
{
So, cindent() returns 4 for "private function update():void".
cindent() returns 0 for "{".
Not sure really where to go from here.
I read through cinoptions, but nothing jumps out at me.
Any ideas why it wouldn't return 4, as in the previous line?
Thanks,
Dave
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---