We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
!
1 parent 36c9ea5 commit febb0d8Copy full SHA for febb0d8
pkgs/yaml/lib/src/scanner.dart
@@ -1111,8 +1111,7 @@ class Scanner {
1111
final buffer = StringBuffer('!');
1112
1113
if (_scanner.peekChar() == EXCLAMATION) {
1114
- // TODO: Do we really need this highlighted?
1115
- final char = _scanner.readCodePoint();
+ buffer.writeCharCode(_scanner.readChar());
1116
1117
if (isGlobalTagPrefix) {
1118
throw YamlException(
@@ -1121,8 +1120,6 @@ class Scanner {
1121
1120
_scanner.spanFrom(start),
1122
);
1123
}
1124
-
1125
- buffer.writeCharCode(char);
1126
} else {
1127
// Both %TAG and tag shorthands can have named handles.
1128
buffer.write(_scanTagUri(flowSeparators: false));
0 commit comments