OILS / pyext / fastlex.pyi View on Github | oils.pub

23 lines, 20 significant
1from typing import Tuple
2
3def IsUtf8Codeset(s: str) -> bool: ...
4def IsValidVarName(s: str) -> bool: ...
5def ShouldHijack(s: str) -> bool: ...
6def LooksLikeInteger(s: str) -> bool: ...
7def LooksLikeYshInt(s: str) -> bool: ...
8def LooksLikeYshFloat(s: str) -> bool: ...
9
10def MatchOshToken(lex_mode_enum_id: int, line: str, start_pos: int) -> Tuple[int, int]: ...
11def MatchPS1Token(line: str, start_pos: int) -> Tuple[int, int]: ...
12def MatchEchoToken(line: str, start_pos: int) -> Tuple[int, int]: ...
13def MatchPrintfBToken(line: str, start_pos: int) -> Tuple[int, int]: ...
14def MatchHistoryToken(line: str, start_pos: int) -> Tuple[int, int]: ...
15def MatchGlobToken(line: str, start_pos: int) -> Tuple[int, int]: ...
16def MatchBraceRangeToken(line: str, start_pos: int) -> Tuple[int, int]: ...
17def MatchJ8Token(line: str, start_pos: int) -> Tuple[int, int]: ...
18def MatchJ8LinesToken(line: str, start_pos: int) -> Tuple[int, int]: ...
19def MatchJ8StrToken(line: str, start_pos: int) -> Tuple[int, int]: ...
20def MatchJsonStrToken(line: str, start_pos: int) -> Tuple[int, int]: ...
21def MatchShNumberToken(line: str, start_pos: int) -> Tuple[int, int]: ...
22
23def MatchOption(s: str) -> int: ...