You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Lukas Zapletal <lz...@bach.cz> on 2001/08/15 10:12:42 UTC

$] problem

Hello, I`m rewriting Embperl`s syntax file definition for upcoming VIM 6.0.
There is a confilct with $] because my syntax highlight script uses perl.vim
highlighter to highlight perl`s code.

There can be another problem also (I know $] variable is depricated, but
still usable). The code:

[$ if( $] > 3.019 ) $]
Bla bla bla
[$ endif $]

#EOF

Embperl generates error here.

For this reason I suggest some substitution, like [& &]

Regards

Lukas Zapletal [lzap@bach.cz]
BACH systems Ltd. [www.bach.cz]
web programmer


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: $] problem

Posted by Gerald Richter <ri...@ecos.de>.

> Hello, I`m rewriting Embperl`s syntax file definition for upcoming VIM
6.0.

There are already two of them (see
http://perl.apache.org/embperl/Embperl.pod.17.html#VIM ), but I personaly
never have tried them.

> There is a confilct with $] because my syntax highlight script uses
perl.vim
> highlighter to highlight perl`s code.
>
> There can be another problem also (I know $] variable is depricated, but
> still usable). The code:
>
> [$ if( $] > 3.019 ) $]
> Bla bla bla
> [$ endif $]
>

Workaround is

[- $x = $] -]
[$ if( $x > 3.019 ) $]
Bla bla bla
[$ endif $]

>
> For this reason I suggest some substitution, like [& &]
>

I surely will find a regex that creates an error with [& &] also, so you
don't win anything. Both are rare cases so I think the current solution
shouldn't be a real problem.

Gerald

P.S. Embperl 2.0 allows you to redefine [$ $] into any markup you prefer...


-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------




---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org