path: root/userdiff.c
diff options
authorZoë Blade <>2015-07-21 13:22:46 (GMT)
committerJunio C Hamano <>2015-07-23 21:44:51 (GMT)
commit69f9c87d4654aad8011444727194c3053827ae07 (patch)
tree7332f3f6f90e2b91cf85006ce68117714ab7f8d3 /userdiff.c
parent7ecec52d42a964c4a8e9f6ca41bb0b5ce00049b4 (diff)
userdiff: add support for Fountain documents
Add support for Fountain, a plain text screenplay format. Git facilitates not just programming specifically, but creative writing in general, so it makes sense to also support other plain text documents besides source code. In the structure of a screenplay specifically, scenes are roughly analogous to functions, in the sense that it makes your job easier if you can see which ones were changed in a given range of patches. More information about the Fountain format can be found on its official website, at . Signed-off-by: Zoë Blade <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'userdiff.c')
1 files changed, 2 insertions, 0 deletions
diff --git a/userdiff.c b/userdiff.c
index 2ccbee5..6bf2505 100644
--- a/userdiff.c
+++ b/userdiff.c
@@ -35,6 +35,8 @@ IPATTERN("fortran",
* they would have been matched above as a variable anyway. */
+IPATTERN("fountain", "^((\\.[^.]|(int|ext|est|int\\.?/ext|i/e)[. ]).*)$",
+ "[^ \t-]+"),
PATTERNS("html", "^[ \t]*(<[Hh][1-6][ \t].*>.*)$",
"[^<>= \t]+"),