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

Unified Diff: pkg/dartdoc/block_parser.dart

Issue 10919024: - Change "static final" to "static const" in the (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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 | « pkg/args/args.dart ('k') | pkg/dartdoc/classify.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dartdoc/block_parser.dart
===================================================================
--- pkg/dartdoc/block_parser.dart (revision 11633)
+++ pkg/dartdoc/block_parser.dart (working copy)
@@ -3,39 +3,39 @@
// BSD-style license that can be found in the LICENSE file.
/// The line contains only whitespace or is empty.
-final _RE_EMPTY = const RegExp(@'^([ \t]*)$');
+const _RE_EMPTY = const RegExp(@'^([ \t]*)$');
/// A series of `=` or `-` (on the next line) define setext-style headers.
-final _RE_SETEXT = const RegExp(@'^((=+)|(-+))$');
+const _RE_SETEXT = const RegExp(@'^((=+)|(-+))$');
/// Leading (and trailing) `#` define atx-style headers.
-final _RE_HEADER = const RegExp(@'^(#{1,6})(.*?)#*$');
+const _RE_HEADER = const RegExp(@'^(#{1,6})(.*?)#*$');
/// The line starts with `>` with one optional space after.
-final _RE_BLOCKQUOTE = const RegExp(@'^[ ]{0,3}>[ ]?(.*)$');
+const _RE_BLOCKQUOTE = const RegExp(@'^[ ]{0,3}>[ ]?(.*)$');
/// A line indented four spaces. Used for code blocks and lists.
-final _RE_INDENT = const RegExp(@'^(?: |\t)(.*)$');
+const _RE_INDENT = const RegExp(@'^(?: |\t)(.*)$');
/// Three or more hyphens, asterisks or underscores by themselves. Note that
/// a line like `----` is valid as both HR and SETEXT. In case of a tie,
/// SETEXT should win.
-final _RE_HR = const RegExp(@'^[ ]{0,3}((-+[ ]{0,2}){3,}|'
+const _RE_HR = const RegExp(@'^[ ]{0,3}((-+[ ]{0,2}){3,}|'
@'(_+[ ]{0,2}){3,}|'
@'(\*+[ ]{0,2}){3,})$');
/// Really hacky way to detect block-level embedded HTML. Just looks for
/// "<somename".
-final _RE_HTML = const RegExp(@'^<[ ]*\w+[ >]');
+const _RE_HTML = const RegExp(@'^<[ ]*\w+[ >]');
/// A line starting with one of these markers: `-`, `*`, `+`. May have up to
/// three leading spaces before the marker and any number of spaces or tabs
/// after.
-final _RE_UL = const RegExp(@'^[ ]{0,3}[*+-][ \t]+(.*)$');
+const _RE_UL = const RegExp(@'^[ ]{0,3}[*+-][ \t]+(.*)$');
/// A line starting with a number like `123.`. May have up to three leading
/// spaces before the marker and any number of spaces or tabs after.
-final _RE_OL = const RegExp(@'^[ ]{0,3}\d+\.[ \t]+(.*)$');
+const _RE_OL = const RegExp(@'^[ ]{0,3}\d+\.[ \t]+(.*)$');
/// Maintains the internal state needed to parse a series of lines into blocks
/// of markdown suitable for further inline parsing.
« no previous file with comments | « pkg/args/args.dart ('k') | pkg/dartdoc/classify.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698