{"thread":{"id":"45352","subject":"[Gsoc] adding built-in driver for javascript","startedAt":"2017-03-11T09:24:07Z","lastAt":"2017-03-11T11:04:50Z","messageCount":2,"participants":["sourav mondal","Christian Couder"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"313819","messageId":"20170311092338.9809-1-souravcristiano502@gmail.com","threadId":"45352","inReplyTo":null,"subject":"[Gsoc] adding built-in driver for javascript","fromName":"sourav mondal","fromEmail":"souravcristiano502@gmail.com","sentAt":"2017-03-11T09:23:38Z","receivedAt":"2017-03-11T09:24:07Z","isPatch":false,"sender":{"key":"souravcristiano502@gmail.com","avatar":null},"body":"I'm working on \"Add more builtin pattern for userdiff\" as my microproject for Gsoc17.As I noticed javascript's builtin driver was not present in userdiff of git/git tree. Hopefully this pattern will cover all cases. I'm really eager to know about my work and wiiling to add more pattern for well known lanaguage.\n\nthanks & regards,\nsourav   \n\nSigned-off-by: sourav mondal <souravcristiano502@gmail.com>\n---\n userdiff.c | 10 ++++++++++\n 1 file changed, 10 insertions(+)\n\ndiff --git a/userdiff.c b/userdiff.c\nindex 8b732e4..2f8e078 100644\n--- a/userdiff.c\n+++ b/userdiff.c\n@@ -160,6 +160,16 @@ IPATTERN(\"css\",\n \t \"-?[_a-zA-Z][-_a-zA-Z0-9]*\" /* identifiers */\n \t \"|-?[0-9]+|\\\\#[0-9a-fA-F]+\" /* numbers */\n ),\n+PATTERNS(\"javascript\",\n+\t /* keywords/patterns*/\n+\t \"^[ \\t]*(var|if|else|for|do|while|switch|case|function|break|continue|new|return|class|super|instanceof)\"\n+\t \"^[ \\t]*(([a-zA-Z_][a-zA-Z0-9])*[ \\t]*\\\\.?[a-zA-Z_]*\\\\(\\\\)[ \\t]*);$\",\n+\t /* word_regex */\n+\t \"[a-zA-Z_][a-zA-Z0-9]*\"\n+\t \"|[-+0-9.eE]+|0[bB]?|[xX]?|o?[0-9a-fA-F]+\"\n+\t \"|[==-+*/%<>&|!**=^]=\"\n+\t \"|--|\\\\+\\\\+|<<=?|>>>?=?|&&|\\|\\|\"\n+),\n { \"default\", NULL, -1, { NULL, 0 } },\n };\n #undef PATTERNS\n-- \n2.9.3\n\n"},{"id":"313820","messageId":"CAP8UFD2ViVY+S6jie6Mu-EgD5rvaF802UD4GhHGjLwWkVdChdg@mail.gmail.com","threadId":"45352","inReplyTo":"20170311092338.9809-1-souravcristiano502@gmail.com","subject":"Re: [Gsoc] adding built-in driver for javascript","fromName":"Christian Couder","fromEmail":"christian.couder@gmail.com","sentAt":"2017-03-11T11:04:42Z","receivedAt":"2017-03-11T11:04:50Z","isPatch":false,"sender":{"key":"christian.couder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/208954?v=4"},"body":"On Sat, Mar 11, 2017 at 10:23 AM, sourav mondal\n<souravcristiano502@gmail.com> wrote:\n> I'm working on \"Add more builtin pattern for userdiff\" as my microproject for Gsoc17.As I noticed javascript's builtin driver was not present in userdiff of git/git tree. Hopefully this pattern will cover all cases. I'm really eager to know about my work and wiiling to add more pattern for well known lanaguage.\n\nIf this is a patch that you are submitting, please:\n\n- add \"[PATCH]\" to the subject of your email, and if it's not the\nfirst time it is sent, add v2, v3 or so after \"PATCH\"\n- move the information related to your GSoC (and the \"thanks &\nregards\" part) just after your \"Signed-off-by\" and the \"---\" line\nbelow it, as it should not appear in the commit message after your\npatch is applied (you can check that using `git format-patch` and `git\nam`)\n- write a better description of your patch above after the GSoC\nrelated information has been moved (`git log userdiff.c` can help you\nsee how others have done it)\n\nThanks.\n\n> thanks & regards,\n> sourav\n>\n> Signed-off-by: sourav mondal <souravcristiano502@gmail.com>\n> ---\n>  userdiff.c | 10 ++++++++++\n>  1 file changed, 10 insertions(+)\n"}]}