Hi all,<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">- some example files would be helpful because most of us probably don't<br>

know Erlang (at least me)<br>
</blockquote><div><br>You'll find attached some source code from Twoorl (Twoorl is an open source Twitter clone written in Erlang using the ErlyWeb framework), this is the code I used to build this lexer. I slightly modified them to check some features. You can find the original source code here : <a href="http://code.google.com/p/twoorl/">http://code.google.com/p/twoorl/</a><br>
<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
- what about the Scintilla Erlang Lexer? The copyright notice in the<br>
lexer in your patch states you wrote it?</blockquote><div><br>Waow, my fault :( I indeed wrote it, because I thought if it wasn't included in Geany, it wasn't in Scite/Scintilla too...<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
 What's wrong with the Erlang<br>
lexer available in Scintilla? Is it a different one? Is one the both<br>
better? Why another one?</blockquote><div><br>So, yes, it is a different one. Maybe not so better, but here is a short comparison :<br><br>Both supports :<br>- Comment, Module Attributes, Preprocessor, Functions, Numbers, Var, String, Char<br>
<br>Scite/Scintilla only :<br>- Code folding<br>- Exponent in numbers<br>- Node name (somename@somewhere)<br>- Parse error mode<br><br>Mine only :<br>- Separate colors for module:function_name<br>- Detects built-in functions<br>
- Handle "_" as catch-all var<br>- EDoc (Javadoc like, for erlang)<br>- EDoc macros<br>- Support for Erlang Header files (*.hrl)<br>- Support 3 comment levels (EOL comments, Function comments and Module comments)<br>
<br>I don't really know if mine is "better" according to the code, but it seems to include more features.<br>I use 6 lists of "keywords" (Reserved words, BIFs, Module attributes, Preprocessor, Edoc, Edoc macro) while Scite/Scintilla use only one to detect reserved  words. So one can simply add a keyword... and can have differents colors for each categories, rather than only one and for reserved words.<br>
<br>Also, Scite Lexer color erlang atoms. But, atoms, module name, and functions are colored the same way. I think that it is better to consider them independently to improve document reading.<br><br>- I forgot to add node name support and didn't know how to add code folding support too. But I can try to add them looking at Scite code...<br>
- Doh. Forgot exponent in number too!<br>- I'll have some more work for parsing error. I didn't need it, but I will have a look.<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

- when creating patches, the unified diff format is preferred (-u<br>
option for the diff command) or even simpler use: 'svn diff'</blockquote><div><br>Okay, next time will be the good one! <br></div></div><br>Please feel free to report me any bugs (for those who knows Erlang :))<br>
<br>Next step will be to add some support for Erlang templates (*.et).<br><br>Regards,<br>lenain<br>