blob: 24766f1332fed5db29f2374ae3e443e54d831ba5 [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 multi-line strings that contain characters and
* sequences prohibited by this grammar, cause compile-time errors.
* @compile-error
* @author rodionov
*/
main() {
'''$''';
}