FlatLang / Flat

(Deprecated) Soon-to-be legacy Flat compiler all in one
6 stars 0 forks source link

Add support for `<p>`-style multiline strings #435

Open BSteffaniak opened 2 years ago

BSteffaniak commented 2 years ago

Something like:

if (workingDirectory == currentDirectory) {
  log.debug("
    Searching for files matching glob pattern #filePattern with working directory:
    \"#{workingDirectory.normalizedLocation}\"
  "p)
} else {
  log.debug("
    Searching for files matching glob pattern #filePattern in
    \"#{currentDirectory.normalizedLocation}\" with working directory:
    \"#{workingDirectory.normalizedLocation}\"
  "p)
}

this is the equivalent of:

if (workingDirectory == currentDirectory) {
  log.debug("Searching for files matching glob pattern #filePattern with working directory: \"#{workingDirectory.normalizedLocation}\"")
} else {
  log.debug("Searching for files matching glob pattern #filePattern in \"#{currentDirectory.normalizedLocation}\" with working directory: \"#{workingDirectory.normalizedLocation}\"")
}