Skip to content

Commit 2b5ea19

Browse files
committed
Fix secondary tag handle issue
* Require non-empty suffix for secondary tags. *
1 parent 7e4f598 commit 2b5ea19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkgs/yaml/lib/src/scanner.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,10 +1007,10 @@ class Scanner {
10071007
String? handle = tagHandle;
10081008
var suffix = '';
10091009

1010-
if (isNamed) {
1010+
if (isNamed || tagHandle == '!!') {
10111011
suffix = _scanTagUri(flowSeparators: false);
10121012

1013-
/// Named tag handles cannot have an empty tag suffix.
1013+
/// Secondary and named tag handles cannot have an empty tag suffix.
10141014
///
10151015
/// c-ns-shorthand-tag ::=
10161016
/// c-tag-handle

0 commit comments

Comments
 (0)