On 05/28/2015 13:27, Charles Campbell wrote:
and don't see $'...' supported by posix. I saw in looking through your
link that there was $"...", too. So, yes, its easy to get
syntax/sh.vim's posix mode to support that extra syntax, but its not
posix shell syntax, so I don't think it should be su
Yuri wrote:
> On 03/21/2015 02:08, John Little wrote:
>> Indeed, that's ksh syntax; with ash it accepts it but includes an extra $
>> character. The correct syntax with my ash is
>> CR='\r'
>> NL='\n'
>>
>> In this case flagging the $ as an error is useful, with my ash at least.
>
> In BSD Almquis
On 03/22/2015 15:37, Yuri wrote:
I suggest, you add this patch.
Actually no, this patch breaks $(cmd ...) syntax. Somebody needs to look
into why b:is_kornshell should come into play for bourne shell syntax.
Or just replace "b:is_sh" in my patch with "b:is_kornshell", as a
quick-n-dirty-ha
On 03/21/2015 20:55, John Little wrote:
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
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 sy
On 03/21/2015 02:08, John Little wrote:
Indeed, that's ksh syntax; with ash it accepts it but includes an extra $
character. The correct syntax with my ash is
CR='\r'
NL='\n'
In this case flagging the $ as an error is useful, with my ash at least.
In BSD Almquist shell, CR='\r' is literally b
Yuri said:
> > This helped, but there is still some valid shell syntax in BSD
> > (Almquist) shell that is highlighted red:
> > > CR=$'\r'
> > > NL=$'\n'
> > dollar sign and enclosing quotation symbols.
Christian replied:
> That is not valid posix syntax, isn't it?
Indeed, that's ksh syntax; wit
Hi Yuri!
On Fr, 20 Mär 2015, Yuri wrote:
> On 03/19/2015 01:44, John Little wrote:
> > let g:is_posix = 1
>
> This helped, but there is still some valid shell syntax in BSD
> (Almquist) shell that is highlighted red:
> > CR=$'\r'
> > NL=$'\n'
> dollar sign and enclosing quotation symbols
On 03/19/2015 01:44, John Little wrote:
let g:is_posix = 1
This helped, but there is still some valid shell syntax in BSD
(Almquist) shell that is highlighted red:
> CR=$'\r'
> NL=$'\n'
dollar sign and enclosing quotation symbols.
Yuri
--
--
You received this message from the "v
On 03/19/2015 01:44, John Little wrote:
but my reading of syntax/sh.vim suggests this is no longer quite true.
Thanks, 'let g:is_posix = 1' fixed it.
Yuri
--
--
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
On Thursday, March 19, 2015 at 6:58:53 PM UTC+13, Yuri wrote:
> OS is FreeBSD, vim-7.4.657, #!/bin/sh is Bourne shell,
IIRC arithmetic evaluation $(()) and process execution using $() were not in
the original Bourne shell, they are POSIX features (that came first from the
Korn shell I think).
On 03/18/2015 21:53, John Little wrote:
I wonder what version OS, vim, and syntax script you have.
I had to force the syntax script to highlight for the Bourne shell (by
let is_bash = 1
in my .vimrc to see the lines highlighted incorrectly. Even using the shebang
#!/bin/sh didn't do it; sh.vim
On Thursday, March 19, 2015 at 2:46:19 PM UTC+13, Yuri Vic wrote:
> In these Bourne shell statements in .sh file:
>
> val=$((some_variable - 1))
>
> val=$(some_function_or_command)
> val=$(${SOME_VAR} arg1 arg2)
>
> enclosing dollar sign and braces highlighted as red, even though this is a
> va
On Wed, Mar 18, 2015 at 06:46:15PM -0700, Yuri Vic wrote:
> In these Bourne shell statements in .sh file:
>
> val=$((some_variable - 1))
> val=$(some_function_or_command)
> val=$(${SOME_VAR} arg1 arg2)
>
> enclosing dollar sign and braces highlighted as red, even though this is a
> valid shell sy
In these Bourne shell statements in .sh file:
val=$((some_variable - 1))
val=$(some_function_or_command)
val=$(${SOME_VAR} arg1 arg2)
enclosing dollar sign and braces highlighted as red, even though this is a
valid shell syntax.
Yuri
--
--
You received this message from the "vim_dev" maillist
15 matches
Mail list logo