Re: [NTG-context] pret-c.lua - v-c.lua
On 5-12-2010 3:06, Renaud AUBIN wrote: Ok, I have made a first version available as a Dropbox ressource: http://dl.dropbox.com/u/5289718/u-pretty-c.7z It certainly needs some improvements (I have some in mind since I have tested it on time.h ⇒ ouch). Feedbacks are welcome since I'll not use it intensively in a near future. Peter: could you test it? I let you add your copy(left) stuff and I will make a public git repo on gitorious if you agree. Hans: do you agree with the naming scheme and the copyright stuff before I put it on gitorious? maybe better the name t-pretty-c is better, of if you follow some strategy t-pretty-emacs-c or so (if there are many variants possible) maybe you should protect the color names as for instance redefining darkred might not be the intention Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] pret-c.lua - v-c.lua
On Mon, Dec 06 2010, Hans Hagen wrote: maybe better the name t-pretty-c is better, of if you follow some strategy t-pretty-emacs-c or so (if there are many variants possible) The only thing in common with emacs, is the default color-scheme. You can get any variant just by changing the color setup. Peter -- Contact information: http://pmrb.free.fr/contact/ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] pret-c.lua - v-c.lua
20:40 nibua-r committed 9c5877c Color abstraction. 20:33 nibua-r committed 2a2a9e1 The test file now use t-pretty-c instead of u-pretty-c. 20:31 nibua-r committed 921eca5 u-pretty-c renamed to t-pretty-c as suggested by Hans. Colors are now protected using the C prefix. Concerning the color abstraction patch, one needs just to overload Ccomment, Cpreproc, Cstring, Ctype, Ckeyword, Cname and Cfuncnbound to use custom color scheme. Cheers, Renaud Le 06/12/2010 15:04, Peter Münster a écrit : On Mon, Dec 06 2010, Hans Hagen wrote: maybe better the name t-pretty-c is better, of if you follow some strategy t-pretty-emacs-c or so (if there are many variants possible) The only thing in common with emacs, is the default color-scheme. You can get any variant just by changing the color setup. Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] pret-c.lua - v-c.lua
On Sun, Dec 05 2010, Renaud AUBIN wrote: Peter: could you test it? Hello Renaud, Yes, I've tested with my standard test.tex and it's really good, even more coloring than my pret-c.lua ! I let you add your copy(left) stuff Why me? and I will make a public git repo on gitorious if you agree. Good idea (how could I disagree???). Many thanks for your efforts! Peter -- Contact information: http://pmrb.free.fr/contact/ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] pret-c.lua - v-c.lua
Hi Peter, Yes, I've tested with my standard test.tex and it's really good, even more coloring than my pret-c.lua ! I have added variable name coloring as in GNU/Emacs + { } block delimiters coloring (that's straightforward when starting from Hans's v-lua.lua). I let you add your copy(left) stuff Why me? That code is not directly from your pret-c but You could be credited since your work is my entry point… and I will make a public git repo on gitorious if you agree. Good idea (how could I disagree???). Ok, then it will be done later this evening. Many thanks for your efforts! Your welcome, that's only a small contribution considering all the questions I have posted to that list until now. Cheers, Renaud ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] pret-c.lua - v-c.lua
Ok, I have made a first version available as a Dropbox ressource: http://dl.dropbox.com/u/5289718/u-pretty-c.7z It certainly needs some improvements (I have some in mind since I have tested it on time.h ⇒ ouch). Feedbacks are welcome since I'll not use it intensively in a near future. Peter: could you test it? I let you add your copy(left) stuff and I will make a public git repo on gitorious if you agree. Hans: do you agree with the naming scheme and the copyright stuff before I put it on gitorious? Cheers, Renaud ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] pret-c.lua - v-c.lua
Hi Peters, I can either help or port if needed… Cheers, Renaud Peter Münster pmli...@free.fr a écrit : Hello, Do I have to learn lpeg now, in order to port pret-c.lua to v-c.lua, or is there a simpler way? Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- Envoyé de mon téléphone Android avec K-9 Mail. Excusez la bièveté. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] pret-c.lua - v-c.lua
On Fri, Dec 03 2010, Renaud AUBIN wrote: I can either help or port if needed… Yes, that would be really great!! Thank you! In the meantime, I'll work with an older version. (no time to learn lpeg now...) Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] pret-c.lua - v-c.lua
On 3-12-2010 10:31, Peter Münster wrote: On Fri, Dec 03 2010, Renaud AUBIN wrote: I can either help or port if needed… Yes, that would be really great!! Thank you! In the meantime, I'll work with an older version. (no time to learn lpeg now...) fyi: the name should be more explicit, like v-c-variant-xxx or so as the can be multiple solutions; the shorter v-*.lua and v-parsed-*.lua names are reserved for core lexers (on my agenda is to do some c lexing as part of cweb lexing) . Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___