blob: d9d1461c92291bbdb7666d9e9e3a70cbc7d161b7 [file] [log] [blame]
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/// @assertion
/// stringLiteral:
/// (multilineString | singleLineString)+
/// ;
/// multilineString:
/// '"""' stringContentTDQ* '"""' |
/// ''''' stringContentTSQ* ''''' |
/// '"""' (~ '"""')* '"""' |
/// ''''' (~ ''''')* '''''
/// ;
/// stringContentTDQ:
/// ~( '\' | '"""' | '$') |
/// stringInterpolation
/// ;
/// stringContenTSQ:
/// ~( '\' | ''''' | '$') |
/// stringInterpolation
/// ;
/// @description Checks that unbalanced string cause compile-time erros.
/// @reviewer iefremov
/// @author rodionov
main() {
// ^
// [cfe] unspecified
// [error line 36, column 0]
// [analyzer] unspecified
// [cfe] unspecified
// [error line 37, column 0]
// [analyzer] unspecified
'''\''';
}