Directives.Scan.in_quote: def of bend-lint-rules@0.2.0.0 Import: import bend-lint-rules@0.2.0.0/lib/linter/directives.bend as Directives Lines 165-198 of bend-lint-rules@0.2.0.0/lib/linter/directives.bend: https://jend.leeeet.dev/read.txt?path=bend-lint-rules@0.2.0.0/lib/linter/directives.bend&start_line=165&end_line=198 import Base # A step in a string or a char literal (`string`): a \ escapes the next character, its closing quote ends it, and a # line it spans holds code. def Scan.in_quote( string: Bool, escaped: Bool, glyph: Glyph, at: U32, line: U32, code: Bool, open: Comment, comments: List<&2, Comment>, lines: List<&2, Bool> ) -> Scan: match escaped glyph: case _ LineEnd{}: Scan{ InQuote{string, False{}}, (at + 1: U32), (line + 1: U32), True{}, open, comments, True{} <> lines } case True{} _: Scan{InQuote{string, False{}}, (at + 1: U32), line, code, open, comments, lines} case False{} Backslash{}: Scan{InQuote{string, True{}}, (at + 1: U32), line, code, open, comments, lines} case False{} DoubleQuote{}: Scan{Scan.quote(string, True{}), (at + 1: U32), line, code, open, comments, lines} case False{} SingleQuote{}: Scan{Scan.quote(string, False{}), (at + 1: U32), line, code, open, comments, lines} case False{} _: Scan{InQuote{string, False{}}, (at + 1: U32), line, code, open, comments, lines} Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.add https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/lib/linter/directives.bend&name=Comment https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/lib/linter/directives.bend&name=Glyph https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/lib/linter/directives.bend&name=Mode https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/lib/linter/directives.bend&name=Scan https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/lib/linter/directives.bend&name=Scan.quote