Skip to content

Commit

Permalink
Merge branch 'zb/userdiff-fountain'
Browse files Browse the repository at this point in the history
New userdiff pattern definition for fountain screenwriting markup
format.

* zb/userdiff-fountain:
  userdiff: add support for Fountain documents
  • Loading branch information
Junio C Hamano committed Aug 3, 2015
2 parents b6d323f + 69f9c87 commit c124017
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Documentation/gitattributes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,8 @@ patterns are available:

- `fortran` suitable for source code in the Fortran language.

- `fountain` suitable for Fountain documents.

- `html` suitable for HTML/XHTML documents.

- `java` suitable for source code in the Java language.
Expand Down
1 change: 1 addition & 0 deletions t/t4018-diff-funcname.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ diffpatterns="
cpp
csharp
fortran
fountain
html
java
matlab
Expand Down
4 changes: 4 additions & 0 deletions t/t4018/fountain-scene
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
EXT. STREET RIGHT OUTSIDE - DAY

CHARACTER
You didn't say the magic phrase, "ChangeMe".
2 changes: 2 additions & 0 deletions userdiff.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ IPATTERN("fortran",
* they would have been matched above as a variable anyway. */
"|[-+]?[0-9.]+([AaIiDdEeFfLlTtXx][Ss]?[-+]?[0-9.]*)?(_[a-zA-Z0-9][a-zA-Z0-9_]*)?"
"|//|\\*\\*|::|[/<>=]="),
IPATTERN("fountain", "^((\\.[^.]|(int|ext|est|int\\.?/ext|i/e)[. ]).*)$",
"[^ \t-]+"),
PATTERNS("html", "^[ \t]*(<[Hh][1-6][ \t].*>.*)$",
"[^<>= \t]+"),
PATTERNS("java",
Expand Down

0 comments on commit c124017

Please sign in to comment.