Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
diff: add ruby funcname pattern
[gitweb.git]
/
diff.c
diff --git
a/diff.c
b/diff.c
index cbf25473c594abfd1fc13473108dc9c15e2f1d15..c253015c5d612a6715485031adc840658ffaf9c0 100644
(file)
--- a/
diff.c
+++ b/
diff.c
@@
-1381,6
+1381,7
@@
static struct builtin_funcname_pattern {
"[A-Za-z_][A-Za-z_0-9]*\\)\\{2,\\}"
"[ ]*([^;]*\\)$" },
{ "tex", "^\\(\\\\\\(sub\\)*section{.*\\)$" },
+ { "ruby", "^\\s*\\(\\(class\\|module\\|def\\)\\s.*\\)$" },
};
static const char *diff_funcname_pattern(struct diff_filespec *one)