<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi,<br>
      <br>
      Le 15/05/2014 20:29, Colomban Wendling a écrit :<br>
    </div>
    <blockquote cite="mid:53750792.9050003@herbesfolles.org" type="cite">
      <pre wrap="">Hi,

Le 15/05/2014 17:17, Stéphane Mourey a écrit :
</pre>
      <blockquote type="cite">
        <pre wrap="">Well, thanks for your time. I may have look one day.
</pre>
      </blockquote>
      <pre wrap="">
I created <a class="moz-txt-link-freetext" href="https://github.com/geany/geany/pull/270">https://github.com/geany/geany/pull/270</a> which was fairly</pre>
    </blockquote>
    I'll give it a try asap. Thanks for your work!<br>
    <blockquote cite="mid:53750792.9050003@herbesfolles.org" type="cite">
      <pre wrap="">
straightforward.  It's not much tested as I don't know Zephir (yet?),</pre>
    </blockquote>
    Zephir is really quickly learnt for a PHP coder : as the purpose is
    limited to extensions PHP coding through classes, the language is
    also limited in many ways, so there is not so much to learn. On the
    other side, thoses limitations are not a problem as you can use the
    PHP standard functions, and even those from others extensions if
    there are loaded. I suspect that you can use PHP functions and
    classes from the user space (coded in PHP), but I do not have try
    yet.<br>
    <blockquote cite="mid:53750792.9050003@herbesfolles.org" type="cite">
      <pre wrap="">
but should work fine.  One limitation however is that it won't parse
variables as it seems Zephir don't use $ mark, but that could probably
be fixed relatively easily if knowing the language.

</pre>
      <blockquote type="cite">
        <pre wrap="">Meanwhile, the trick is to start with a commented PHP opening tag
like this : // <?php
</pre>
      </blockquote>
      <pre wrap="">
Yeah, this will work.

</pre>
      <blockquote type="cite">
        <blockquote type="cite">
          <blockquote type="cite">
            <pre wrap="">So, now, I think that I do not need to make a new parser for
Zephir, as the PHP one works to locate Zephir symbols, at least
for classes and methods which are the most useful symbols for me.
Some work is certainly required for properties and variables, but
I can live without for a while.
</pre>
          </blockquote>
        </blockquote>
      </blockquote>
      <pre wrap="">
Maybe you use an earlier Geany version, but since 1.24 the PHP tag</pre>
    </blockquote>
    Currently, I use 1.23.1... Have to update some stuff on this
    workstation!<br>
    <blockquote cite="mid:53750792.9050003@herbesfolles.org" type="cite">
      <pre wrap="">
parser is a lot more clever, and also requires proper PHP open tags.
With the "//<?php" trick it will of course work, but it won't without.

Regards,
Colomban
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.geany.org">Users@lists.geany.org</a>
<a class="moz-txt-link-freetext" href="https://lists.geany.org/cgi-bin/mailman/listinfo/users">https://lists.geany.org/cgi-bin/mailman/listinfo/users</a>

</pre>
    </blockquote>
    <br>
    <br>
    <div class="moz-signature">-- <br>
      Blog: <a href="http://impossible-exil.info">Impossible Exil</a><br>
      <a href="https://www.bitmessage.org" title="Stop using mail!">Bitmessage</a>:
      BM-2D7keexEn8tGyYBEqGt88U2CZtpEnRzZor<br>
    </div>
  </body>
</html>