4c43b60323
Task-number: QTBUG-21355 Change-Id: I315d4b1f55d42391524c0e8625952dee1b96fca3 Reviewed-on: http://codereview.qt-project.org/4449 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
34 lines
584 B
Prolog
34 lines
584 B
Prolog
LIST = 1 2 3 4 #a comment
|
|
!equals( LIST, 1 2 3 4 ) {
|
|
message( "FAILED: inline comment" )
|
|
}
|
|
|
|
LIST = 1 \
|
|
2 \
|
|
# 3 \
|
|
4
|
|
!equals( LIST, 1 2 4 ) {
|
|
message( "FAILED: commented out continuation" )
|
|
}
|
|
|
|
LIST = 1 \
|
|
2 \#comment
|
|
3 \
|
|
4
|
|
!equals( LIST, 1 2 3 4 ) {
|
|
message( "FAILED: comment at end of continuation")
|
|
}
|
|
|
|
|
|
LIST = 1 2 3 4#comment
|
|
!equals( LIST, 1 2 3 4 ) {
|
|
message( "FAILED: no space before comment" )
|
|
}
|
|
|
|
LIST = 1 2 3 4$${LITERAL_HASH}five
|
|
!equals( LIST, 1 2 3 4$${LITERAL_HASH}five ) {
|
|
message( "FAILED: using LITERAL_HASH" )
|
|
}
|
|
|
|
|