On Saturday, March 21, 2015 at 10:52:19 PM UTC+13, Yuri wrote: > In BSD Almquist shell, CR='\r' is literally backslash and r, and > CR=$'\r' is carriage return char.
> ) The same syntax works in bash, but this isn't posix syntax. So why > vim flags it then, if it is Bourne shell syntax? I agree now that it's wrong, and the syntax dash uses is weird. It appears that the writer of those parts of the shell syntax highlighting was writing for dash. But this is understandable since the ANSI C quoting style, though it appeared in ksh93, has only recently (2013) been published by the open group, and while I'm not a standards lawyer that publication seems not very official, more de facto. Since the syntax script supports the $'...' style for bash and ksh, it should be easy to do so in posix mode too. Nevertheless, shell script syntax highlighting is almost a Sisyphean task, and I'm very grateful that Dr Chip has done it. Regards, John Little -- -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
