From 0dce698fc372ddfe6130e61379c14181617df574 Mon Sep 17 00:00:00 2001
From: Hackerpilot <briancschott@gmail.com>
Date: Thu, 4 Jul 2013 16:13:09 -0700
Subject: [PATCH] Fixed another bug

---
 .gitignore                         | 0
 .gitmodules                        | 0
 LICENSE_1_0.txt                    | 0
 autocomplete.d                     | 0
 createTable.sql                    | 0
 ctags.d                            | 0
 dsc.sublime-project                | 0
 editors/textadept/README.txt       | 0
 editors/vim/README.md              | 0
 editors/vim/autoload/dcomplete.vim | 0
 editors/vim/ftplugin/d.vim         | 0
 makefile                           | 0
 schema/dscanner-schema.json        | 0
 std/d/parser.d                     | 6 +++++-
 std/d/runtester.sh                 | 7 ++-----
 versions.d                         | 0
 16 files changed, 7 insertions(+), 6 deletions(-)
 mode change 100644 => 100755 .gitignore
 mode change 100644 => 100755 .gitmodules
 mode change 100644 => 100755 LICENSE_1_0.txt
 mode change 100644 => 100755 autocomplete.d
 mode change 100644 => 100755 createTable.sql
 mode change 100644 => 100755 ctags.d
 mode change 100644 => 100755 dsc.sublime-project
 mode change 100644 => 100755 editors/textadept/README.txt
 mode change 100644 => 100755 editors/vim/README.md
 mode change 100644 => 100755 editors/vim/autoload/dcomplete.vim
 mode change 100644 => 100755 editors/vim/ftplugin/d.vim
 mode change 100644 => 100755 makefile
 mode change 100644 => 100755 schema/dscanner-schema.json
 mode change 100644 => 100755 versions.d

diff --git a/.gitignore b/.gitignore
old mode 100644
new mode 100755
diff --git a/.gitmodules b/.gitmodules
old mode 100644
new mode 100755
diff --git a/LICENSE_1_0.txt b/LICENSE_1_0.txt
old mode 100644
new mode 100755
diff --git a/autocomplete.d b/autocomplete.d
old mode 100644
new mode 100755
diff --git a/createTable.sql b/createTable.sql
old mode 100644
new mode 100755
diff --git a/ctags.d b/ctags.d
old mode 100644
new mode 100755
diff --git a/dsc.sublime-project b/dsc.sublime-project
old mode 100644
new mode 100755
diff --git a/editors/textadept/README.txt b/editors/textadept/README.txt
old mode 100644
new mode 100755
diff --git a/editors/vim/README.md b/editors/vim/README.md
old mode 100644
new mode 100755
diff --git a/editors/vim/autoload/dcomplete.vim b/editors/vim/autoload/dcomplete.vim
old mode 100644
new mode 100755
diff --git a/editors/vim/ftplugin/d.vim b/editors/vim/ftplugin/d.vim
old mode 100644
new mode 100755
diff --git a/makefile b/makefile
old mode 100644
new mode 100755
diff --git a/schema/dscanner-schema.json b/schema/dscanner-schema.json
old mode 100644
new mode 100755
diff --git a/std/d/parser.d b/std/d/parser.d
index 89566d5..e276424 100755
--- a/std/d/parser.d
+++ b/std/d/parser.d
@@ -5200,7 +5200,11 @@ q{(int a, ...)
         auto ident = expect(TokenType.identifier);
         if (ident is null) return null;
         node.identifier = *ident;
-        if ((node.templateArgumentList = parseTemplateArgumentList()) is null) return null;
+        if (currentIs(TokenType.comma))
+        {
+            advance();
+            if ((node.templateArgumentList = parseTemplateArgumentList()) is null) return null;
+        }
         if (expect(TokenType.rParen) is null) return null;
         return node;
     }
diff --git a/std/d/runtester.sh b/std/d/runtester.sh
index beb29fa..e2655d1 100755
--- a/std/d/runtester.sh
+++ b/std/d/runtester.sh
@@ -8,8 +8,5 @@ for file in /usr/include/d/std/*.d; do
     ./tester $file > $outFile
 done
 echo
-echo "Good files:"
-grep -l "Parsing finished with 0 errors" runs/*.txt | sed -e "s/runs\///" -e "s/.txt//"
-echo
-echo "Bad files:"
-grep -L "Parsing finished with 0 errors" runs/*.txt | sed -e "s/runs\///" -e "s/.txt//"
+grep -l "Parsing finished with 0 errors" runs/*.txt | sed -e "s/runs\//Pass /" -e "s/.txt//"
+grep -L "Parsing finished with 0 errors" runs/*.txt | sed -e "s/runs\//Fail /" -e "s/.txt//"
diff --git a/versions.d b/versions.d
old mode 100644
new mode 100755