[cairo-commit] src/check-doc-syntax.sh

Behdad Esfahbod behdad at kemper.freedesktop.org
Wed Mar 31 22:54:01 PDT 2010


 src/check-doc-syntax.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit db4dbb38340e93da616319f00e0f4327d1c1d815
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Thu Apr 1 01:53:22 2010 -0400

    Improve doc syntax check to allow inline macro docs

diff --git a/src/check-doc-syntax.sh b/src/check-doc-syntax.sh
index 2471cd9..4ca82d3 100755
--- a/src/check-doc-syntax.sh
+++ b/src/check-doc-syntax.sh
@@ -28,7 +28,7 @@ fi
 
 enum_regexp="\([^%@']\|^\)\<\(FALSE\|TRUE\|NULL\|CAIRO_[0-9A-Z_]*\)\($\|[^(A-Za-z0-9_]\)"
 if test "x$SGML_DOCS" = x; then
-	enum_regexp='^[^:]*:[/ ][*]\(\|[ \t].*\)'$enum_regexp
+	enum_regexp='^[^:]*:[/ ][*]\(\|[ \t].*\)'$enum_regexp\($\|[^:]\)
 fi
 if echo $FILES | xargs grep . /dev/null | sed -e '/<programlisting>/,/<\/programlisting>/d' | grep "$enum_regexp" | grep -v '#####'; then
 	stat=1


More information about the cairo-commit mailing list