blob: 013fa990836e737fd854db4570f7aa1e73e1bfff [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:
* (MULTI_LINE_STRING | SINGLE_LINE_STRING)+
* ;
* MULTI_LINE_STRING:
* '"""' STRING CONTENT TDQ* '"""' |
* ''''' STRING CONTENT TSQ* ''''' |
* '"""' (~ '"""')* '"""' |
* ''''' (~ ''''')* '''''
* ;
* STRING CONTENT TDQ:
* ~( '\' | '"""' | '$') |
* STRING_INTERPOLATION
* ;
* STRING CONTENT TSQ:
* ~( '\' | ''''' | '$') |
* STRING_INTERPOLATION
* ;
* @description Checks that unbalanced string cause compile-time erros.
* @compile-error
* @author rodionov
* @reviewer kaigorodov
*/
main() {
"""\""";
}