Esc

unnecessary_semicolon

Finds a ; that ends nothing (x = 1;;, if c { ... };).

Category style, warn by default.

Example
#import "Basic";

main :: () {
    total := 0;;
    total += 1;
    print("%\n", total);
}
Diagnostic
warning[unnecessary_semicolon]: this `;` ends nothing
  --> example.jai:4:16
   |
 4 |     total := 0;;
   |                ^
   |
help: remove it
   |
 4 ~     total := 0;
   |
   = note: `unnecessary_semicolon` is `warn` by default
Fixed
#import "Basic";

main :: () {
    total := 0;
    total += 1;
    print("%\n", total);
}

An empty statement in a block, a case, a procedure body or at the top level of a file.