Files
swift-mirror/test/StringProcessing/Parse/regex_parse_complete.swift
Hamish Knight b840730958 [IDE] Pass LangOptions to ide::isSourceInputComplete
Ensure we account for things like the enablement
of bare slash regex literals.
2024-10-17 14:04:34 +01:00

20 lines
658 B
Swift

// RUN: %empty-directory(%t)
// RUN: split-file %s %t
// Make sure we consider the below source complete.
// RUN: %swift-ide-test -test-input-complete -enable-bare-slash-regex -source-filename %t/bare-slash.swift | %FileCheck %s -check-prefix=COMPLETE
// Bare slash is currently disabled by default.
// RUN: %swift-ide-test -test-input-complete -source-filename %t/bare-slash.swift | %FileCheck %s -check-prefix=INCOMPLETE
// RUN: %swift-ide-test -test-input-complete -source-filename %t/extended.swift | %FileCheck %s -check-prefix=COMPLETE
// INCOMPLETE: IS_INCOMPLETE
// COMPLETE: IS_COMPLETE
//--- bare-slash.swift
/\(/
//--- extended.swift
#/\(/#