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 68665e2 commit f055c28Copy full SHA for f055c28
pkgs/yaml/lib/src/scanner.dart
@@ -1120,8 +1120,7 @@ class Scanner {
1120
final buffer = StringBuffer('!');
1121
1122
if (_scanner.peekChar() == EXCLAMATION) {
1123
- // TODO: Do we really need this highlighted?
1124
- final char = _scanner.readCodePoint();
+ buffer.writeCharCode(_scanner.readChar());
1125
1126
if (isGlobalTagPrefix) {
1127
throw YamlException(
@@ -1130,8 +1129,6 @@ class Scanner {
1130
1129
_scanner.spanFrom(start),
1131
);
1132
}
1133
-
1134
- buffer.writeCharCode(char);
1135
} else {
1136
// Both %TAG and tag shorthands can have named handles.
1137
buffer.write(_scanTagUri(flowSeparators: false));
0 commit comments