Commit b513c8e
committed
chore(deps): roll bbcode parser
- Use parser v2, flat parsing based on stack.
- Add `parentValidator` for child nodes validating their parents.
- To ensure `[*]` is only parsed within lists.
- Lossless fallback: fix missing `[*]` and LF by using `isIgnored` flag.
- Parser v2 passes all tests for v1.
Fixes #3611 parent 984de60 commit b513c8e
1 file changed
+1
-1
lines changedSubmodule dart_bbcode_parser updated 56 files
- .gitignore+1
- bin/dart_bbcode_parser.dart+14-1
- lib/dart_bbcode_parser.dart+2-1
- lib/src/dart_bbcode_parser.dart+34-6
- lib/src/parser.dart+6-348
- lib/src/parser_v1.dart+355
- lib/src/parser_v2.dart+235
- lib/src/tags/align.dart+4-2
- lib/src/tags/backgroud_color.dart+4-2
- lib/src/tags/bold.dart+4-2
- lib/src/tags/code.dart+6-4
- lib/src/tags/color.dart+4-2
- lib/src/tags/common_tag.dart+11-6
- lib/src/tags/divider.dart+4-2
- lib/src/tags/font_size.dart+4-2
- lib/src/tags/free_v2.dart+8-4
- lib/src/tags/hide_v2.dart+8-4
- lib/src/tags/image.dart+4-2
- lib/src/tags/italic.dart+4-2
- lib/src/tags/list.dart+22-10
- lib/src/tags/quote.dart+4-2
- lib/src/tags/spoiler_v2.dart+6-4
- lib/src/tags/strikethrough.dart+4-2
- lib/src/tags/superscript.dart+4-2
- lib/src/tags/tag.dart+23-18
- lib/src/tags/text.dart+44-31
- lib/src/tags/underline.dart+4-2
- lib/src/tags/url.dart+4-2
- lib/src/tags/user_mention.dart+4-2
- lib/src/utils.dart+5
- test/lib_test.dart+6-6
- test/paragraph_test.dart+5-26
- test/parser_test.dart+234-153
- test/position_test.dart+1-1
- test/tags/align_tag_test.dart+11-19
- test/tags/background_color_tag_test.dart+9-19
- test/tags/bold_tag_test.dart+5-9
- test/tags/code_tag_test.dart+44-18
- test/tags/color_tag_test.dart+9-17
- test/tags/common_tag_test.dart+7-5
- test/tags/divider_tag_test.dart+3-3
- test/tags/font_size_tag_test.dart+11-23
- test/tags/free_v2_tag_test.dart+4-4
- test/tags/hide_v2_tag_test.dart+9-9
- test/tags/image_tag_test.dart+7-19
- test/tags/italic_tag_test.dart+5-9
- test/tags/list_tag_test.dart+64-7
- test/tags/quote_tag_test.dart+9-17
- test/tags/spoiler_v2_tag_test.dart+6-6
- test/tags/strikethrough_tag_test.dart+5-9
- test/tags/superscript_tag_test.dart+5-9
- test/tags/text_test.dart+4-4
- test/tags/underline_tag_test.dart+5-9
- test/tags/url_tag_test.dart+9-17
- test/tags/user_mention_tag_test.dart+7-19
- test/utils.dart+50-10
0 commit comments