<div dir="ltr"><br clear="all"><a href="http://ik.homelinux.org/">http://ik.homelinux.org/</a><br>
<br><br><div class="gmail_quote">On Fri, Jun 4, 2010 at 17:44, Martin <span dir="ltr"><<a href="mailto:lazarus@mfriebe.de">lazarus@mfriebe.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">On 04/06/2010 13:32, ik wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello,<br>
<br>
I'm reading a lot of code of SynEdit, and I find a big logical bug with how things implemented.<br>
<br>
Many programming languages such as Python, Ruby, Javascript and few others, are supporting unicode based named for methods, functions, class, variables etc...<br>
It allow everyone that wish to do it, to create for example in non latin chars names, including also umlets and other chars.<br>
<br>
The implementation of TSynEdit is to run across all of the ASCII table (0..255) and act only by this. And that's a logical bug imho.<br>
</blockquote>
<br></div></div>
You speak of the SynHighlighter, or the actual SynEdit?<br></blockquote><div><br>Yes I am.<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Most of the highlighters are old, and haven't had much maintenance, so they do what was right 10 years ago....<br></blockquote><div><br>It seems that the only maintained version of syntax highlight is the Pascal version. <br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Pascal-Highlighter, can resolve to the trick of treading text of ascii. All pascal relevant keywords are limited to latin chars => and they are the same in Ascii/Ansi or utf8.<br></blockquote><div><br>On Delphi.NET they also allow multibyte names such as:<br>
<br>procedure פרוצדורה(const מחרוזת : String); ...<br><br><br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
If you source contains other chars (multy-byte utf8) in places where this is allowed, the pascal highlighting will continue to work.<br></blockquote><div><br>There is a need to also add Bi-Directional support for multi-byte support. I want to add it when I'll have some time for it.<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
SynEdit itself => outside the Highlighter, does full utf8 handling (including (double) full-width Chinese chars).<br>
Otherwise please point out some examples (and make sure you are using SynEdit from SVN/trunk / latest snapshot)<br><font color="#888888">
<br>
Martin</font><div><div></div><div class="h5"><br>
<br>
--<br>
_______________________________________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lists.lazarus.freepascal.org" target="_blank">Lazarus@lists.lazarus.freepascal.org</a><br>
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
</div></div></blockquote></div><br>Ido<br></div>