def Scan.quote
import bend-lint-rules@0.2.0.0/lib/linter/directives.bend as Directivesimport Base
155# Where a quote leaves the scan: a string's " and a char's ' close it; the other quote does not.
156def Scan.quote(string: Bool, double: Bool) -> Mode:
157 match string double:
158 case True{} True{}:
159 InCode{}
160 case False{} False{}:
161 InCode{}
162 case _ _:
163 InQuote{string, False{}}