Merge pull request #19 from denesalmasi/yaml

The yaml scanner hung in an infinite loop when trying to scan this
string: "{" (a single opening brace).

_fetchMoreTokens kept growing the token list with a STREAM_END token ad
infinitum.
diff --git a/lib/src/parser.dart b/lib/src/parser.dart
index d5ed87a..df6ed75 100644
--- a/lib/src/parser.dart
+++ b/lib/src/parser.dart
@@ -667,7 +667,7 @@
   Pair<VersionDirective, List<TagDirective>> _processDirectives() {
     var token = _scanner.peek();
 
-    var versionDirective;
+    VersionDirective versionDirective;
     var tagDirectives = <TagDirective>[];
     while (token.type == TokenType.VERSION_DIRECTIVE ||
            token.type == TokenType.TAG_DIRECTIVE) {
diff --git a/lib/src/scanner.dart b/lib/src/scanner.dart
index 47efd38..9bf8114 100644
--- a/lib/src/scanner.dart
+++ b/lib/src/scanner.dart
@@ -463,8 +463,6 @@
         _fetchPlainScalar();
         return;
     }
-
-    throw 'Inaccessible';
   }
 
   /// Throws an error about a disallowed character.