packages feed

aihc-parser-1.0.0.2: test/Test/Fixtures/golden/module/string-gap-operator-continuation.yaml

extensions: []
input: |
  module StringGapLayout where
  f = "hello\
      \world" ++ "!"
ast: |-
  Module {ModuleHead {"StringGapLayout"}, [DeclValue (PatternBind (PVar "f") (EInfix (EString "helloworld") "++" (EString "!")))]}
status: pass
comment: |
  Operator continuation after a string gap must not trigger
  premature layout closure. The string ends on the same line as
  the operator, so no BOL processing should occur between them.
  This tests that layout uses the end line (not start line) of
  multi-line tokens for BOL detection.