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

Unified Diff: utils/peg/pegparser.dart

Issue 10991031: Update peg parser tests to r'' strings (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 | « no previous file | utils/tests/peg/peg.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/peg/pegparser.dart
diff --git a/utils/peg/pegparser.dart b/utils/peg/pegparser.dart
index 5204148ab9c2f0254b5a5a26247d783f29beebd3..b67bd05105c0661287fbff7b8b9a0af69cbb115c 100644
--- a/utils/peg/pegparser.dart
+++ b/utils/peg/pegparser.dart
@@ -287,8 +287,8 @@ class Grammar {
var line = state._text.substring(start, end);
var indicator = '';
for (var i = 0; i < line.length && start + i < state.max_pos; i++)
- indicator = indicator + ' ';
- indicator = indicator + '^';
+ indicator = ' $indicator';
+ indicator = '$indicator^';
// TODO: Convert to an exception.
print(message);
print(line);
@@ -614,7 +614,7 @@ String _formatMultiRule(String functor, List rules) {
class _SequenceRule extends _Rule {
// This rule matches the component rules in order.
final List<_Rule> _rules;
- final int _generatingSubRules = 0;
+ final int _generatingSubRules;
final Function _reducer;
bool _generatesValue;
_SequenceRule(List<_Rule> this._rules,
« no previous file with comments | « no previous file | utils/tests/peg/peg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698