<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Thanks all for your help!<br>
      I got it! I know what puts the mess in the symbols : it's the
      Return Type Hint (<a
        href="http://zephir-lang.com/oop.html#return-type-hints">http://zephir-lang.com/oop.html#return-type-hints</a>).<br>
      So if you change the Hello World example this way :<br>
      <pre><span class="k">namespace</span> <span class="nx">Test</span><span class="p">;</span>

<span class="kr">class</span> <span class="nx">Hello</span>
<span class="p">{</span>
    <span class="cm">/**</span>
<span class="cm">     * This is a sample method</span>
<span class="cm">     */</span>
    <span class="kr">public</span> <span class="kd">function</span> returnHello<span class="nx"></span><span class="p">()</span><u><b><big> -> string</big></b></u>
    <span class="p">{</span>
        return<span class="k"></span> <span class="s2">"Hello World!"</span><span class="p">;</span>
    <span class="p">}</span>
<span class="p">}</span>

</pre>
      Highlighting is correct but the symbols do not appears correctly
      when setting the document type to C#.<br>
      <br>
      What can I do ?<br>
      <br>
      <br>
      <br>
      Le 15/05/2014 10:14, Lex Trotman a écrit :<br>
    </div>
    <blockquote
cite="mid:CAKhWKDMrV+VZQ1bj+sYjeui_rXaHr3SQZ2vsaKXm7SpGN69GsQ@mail.gmail.com"
      type="cite">
      <pre wrap="">On 15 May 2014 17:07, Stéphane Mourey
<a class="moz-txt-link-rfc2396E" href="mailto:stephane.mourey@impossible-exil.info"><stephane.mourey@impossible-exil.info></a> wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">Hi everyone,

I'm new a the list, so just a few word to introduce myself : I am mostly a
PHP developer and I often write for the french magazine "GNU/Linux Magazine
France". I'm using Geany on a daily basis for a long time, and enjoy it more
than any other IDE.

As a PHP developper, I recently discover a new programming language,
dedicated to native PHP extensions. Its name is Zephir, you could learn more
here : <a class="moz-txt-link-freetext" href="http://zephir-lang.com">http://zephir-lang.com</a>. Its philosophy is to associate the PHP syntax
style with the efficiency of C to enable long-time PHP developer to run
easily their own extensions as fast as C ones and to code them as quickly as
PHP scripts.

So I adopted Zephir, and will certainly use it on a daily basis, as Geany.
So I naturally tried to code Zephir sources with Geany and to make my own
filestype.Zephir.conf. You can see the current state of this work here :
<a class="moz-txt-link-freetext" href="https://github.com/taophp/zephir-geany-fileconf">https://github.com/taophp/zephir-geany-fileconf</a>

The fact is that if I set the Zephir file as a PHP file using the menu
Document->Set filetype (I suppose, my geany front end is in French), the
symbols tabs detects all my classes, functions, properties, and all
perfectly, but in the editing area, there is no syntax highlighting until I
add the opening PHP tag "<?php" - but the Zephir compiler will not accept
it. My first attempt to solve this issue was to copy the filetypes.php in a
filetypes.Zephir.conf, and then tried to modify it to avoid the need of the
opening PHP tag. My second attempt was to find another filetypes.* that fit
more my needs. My choice was filetypes.cs, and this was the base of my
project on Gitbub. Now syntax highlighting is correct, but the symbols tab
does not work...
</pre>
      </blockquote>
      <pre wrap="">
Strange, if I take the "hello world" example from the zephir-lang docs
and simply set filetype C# both highlighting and symbols work.  So
setting both lexer_filetype and tag_parser to C# in the custom
filetype file should work.

Cheers
Lex


</pre>
      <blockquote type="cite">
        <pre wrap="">
Could anyone could tell me how to deal with this issue ?

Regards,

Stéphane Mourey
--
Blog: Impossible Exil
Bitmessage: BM-2D7keexEn8tGyYBEqGt88U2CZtpEnRzZor

_______________________________________________
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>
      <pre wrap="">_______________________________________________
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>