Skip to content

Commit

Permalink
Fix some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
chenzhiguang committed Dec 16, 2022
1 parent 329cee9 commit 704a3ad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions lib/src/block_parser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ class BlockParser {
/// some blocks, for example:
/// When the [ParagraphSyntax] parsing process is interrupted by the
/// [SetextHeaderSyntax], so this structure is not a paragraph but a setext
/// heading, then the [ParagraphSyntax] does not have to retreat the reading
/// position, it only needs to return `null`, the [SetextHeaderSyntax] will
/// pick up the lines in [linesToConsume].
/// heading, then the [ParagraphSyntax.parse] does not have to retreat the
/// reading position, it only needs to return `null`, the [SetextHeaderSyntax]
/// will pick up the lines in [linesToConsume].
List<Line> get linesToConsume => lines.getRange(_start, _pos + 1).toList();

/// Whether the parser has encountered a blank line between two block-level
Expand Down Expand Up @@ -126,11 +126,12 @@ class BlockParser {
BlockSyntax? get parentSyntax => _parentSyntax;
BlockSyntax? _parentSyntax;

/// If the [SetextHeadingSyntax] is disabled temporarily
/// Whether the [SetextHeadingSyntax] is disabled temporarily.
bool get setextHeadingDisabled => _setextHeadingDisabled;
bool _setextHeadingDisabled = false;

/// The [BlockSyntax] which is running now.
/// The value is `null` until we found the first matched [BlockSyntax].
BlockSyntax? get currentSyntax => _currentSyntax;
BlockSyntax? _currentSyntax;

Expand Down
4 changes: 2 additions & 2 deletions lib/src/block_syntaxes/blockquote_syntax.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class BlockquoteSyntax extends BlockSyntax {

const BlockquoteSyntax();

/// If this blockquote is ended up at a lazy continuation line.
// The definition of lazy continuation lines:
/// Whether this blockquote ends with a lazy continuation line.
// The definition of lazy continuation lines:
// https://spec.commonmark.org/0.30/#lazy-continuation-line
static var _lazyContinuation = false;
@override
Expand Down

0 comments on commit 704a3ad

Please sign in to comment.