Re: is# may not be failed to parse with isident+=#

2015-08-31 Fir de Conversatie mattn
On Monday, August 31, 2015 at 7:53:37 PM UTC+9, Bram Moolenaar wrote: 
> You can use try/catch, that also works to catch syntax errors.
> However, after your fix it works, thus the try/catch isn't actually
> needed.

https://gist.github.com/mattn/948cb085d6cbd745b10e

Is this okay?

- mattn

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: is# may not be failed to parse with isident+=#

2015-08-30 Fir de Conversatie Bram Moolenaar

Yasuhiro Matsumoto wrote:

 ---
 set isident+=#
 
 if 1 is# 1
   echo 1
 else
   echo 2
 endif
 ---
 
 This vim script should be parsed correctly but E15 occured. Below
 should fix this problem.

Thanks.  Could you write a test for this?


-- 
SIGIRO -- irony detected (iron core dumped)

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///

-- 
-- 
You received this message from the vim_dev maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
vim_dev group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: is# may not be failed to parse with isident+=#

2015-08-30 Fir de Conversatie mattn
On Monday, August 31, 2015 at 1:35:30 AM UTC+9, Bram Moolenaar wrote:
 Thanks.  Could you write a test for this?

When adding # into isident, vim can't parse vim script correctly. So it's 
difficult to do it.
What tests do you expect?

- mattn

-- 
-- 
You received this message from the vim_dev maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
vim_dev group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.