docs: keep shell reader docstrings in house style

This commit is contained in:
Abdessamad Derraz committed 2026-11-17 08:10:24 +01:00
1 parent e2b3daff63
commit f36a95bdcc
1 file changed
+2 -2
+2 -2
View File
@@ -159,7 +159,7 @@ class _Lexer:
self.text += LITERAL_DOLLAR if char == "$" else char
def double(self, i: int) -> int:
"""The character at i inside double quotes; the index of the last one read."""
"""The character at i inside double quotes, and the index of the last one read."""
line, char = self.line, self.line[i]
self.raw += char
if char == "\\" and i + 1 < len(line) and line[i + 1] in '"\\$`':
@@ -174,7 +174,7 @@ class _Lexer:
return i
def plain(self, i: int) -> int | None:
"""The character at i outside quotes; the index of the last one read, None at a comment."""
"""The character at i outside quotes, and the index of the last one read (None at a comment)."""
line, char = self.line, self.line[i]
if char in "'\"":
self.close_segment()