Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(523)

Unified Diff: lib/yaml.dart

Issue 1329763002: Don't use regular expressions in Loader. (Closed) Base URL: git@github.com:dart-lang/yaml@master
Patch Set: Code review changes Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/yaml_node_wrapper.dart ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/yaml.dart
diff --git a/lib/yaml.dart b/lib/yaml.dart
index 9af329a202eb098850b5ac92c88a433239d8dbf5..aa120ef9790fc52daa793888010bb1455896f813 100644
--- a/lib/yaml.dart
+++ b/lib/yaml.dart
@@ -53,7 +53,7 @@ YamlDocument loadYamlDocument(String yaml, {sourceUrl}) {
var document = loader.load();
if (document == null) {
return new YamlDocument.internal(
- new YamlScalar.internal(null, loader.span, ScalarStyle.ANY),
+ new YamlScalar.internalWithSpan(null, loader.span),
loader.span, null, const []);
}
« no previous file with comments | « lib/src/yaml_node_wrapper.dart ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698