mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-23 07:42:12 +08:00

Without this, a recipe containing a trailing backslash followed by a line not beginning with tab (like any non-continued recipe lines would) would result in the continuation showing up in completions. Whenever a line ends in a backslash, consider the next line invalid as a target. Regex explanation: ^([^#]*[^#\\])? -- optional prefix not containing comment character and not ending in backslash (\\\\)*\\$ -- 2n+1 backslashes at end of line (handles escaped backslashes) (cherry picked from commit fff320b56ba42964033089809c77b38147058598)