Files
fish-shell/tests/checks
Fabian Boehm f7bde1354d Only count it as a naked invocation at the end of the "file"
This is a weird confusion between the "end" and "terminate" token
types.

"end" is the end of the "line" - a newline or ";".

"terminate" is the end of the "file" - like pressing newline
interactively or having the file end.

So this would count things like `if` and `switch` as a "help"
invocation even if followed by a newline, e.g.

```fish
if; echo foo
```

and

```fish
switch
case foo
```

The result of that was that a naked "if" in a script file isn't an
error, but doesn't start a block either, so if you complete the block
it would count the "end" as superfluous, which sends you on a bit of a
hunt to figure out where the block start is missing.
2025-05-01 14:57:30 +02:00
..
2025-01-26 20:30:48 -08:00
2025-01-26 20:30:48 -08:00
2024-12-29 13:37:28 +01:00
2025-03-01 07:55:53 +01:00
2025-04-18 20:22:30 +02:00
2024-04-25 21:52:56 +02:00
2025-03-13 18:13:10 +01:00
2024-05-26 22:06:11 -05:00
2024-04-21 14:35:13 +02:00
2025-03-13 18:13:10 +01:00
2025-04-11 15:11:22 +02:00
2025-04-29 13:31:13 +02:00
2025-03-13 18:13:10 +01:00
2025-01-08 19:10:38 +01:00
2025-01-26 20:30:48 -08:00