Semicolon Cleanup

1. Semicolons were required in the wrong spot.
2. Make semicolons "invisible" (from the tree-sitter perspective).

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
Will Hawkins
2026-02-27 08:23:27 -05:00
parent 1495074459
commit cfe78a9b29
13 changed files with 73 additions and 92 deletions
+5 -3
View File
@@ -168,14 +168,16 @@ struct Expression {
]
for le_parser in localElementsParsers {
if case Result.Ok(.some(let parsed)) = le_parser.parse(
switch le_parser.parse(
node: node, inTree: inTree, withScopes: scopes)
{
return .Ok(parsed)
case .Ok(.some(let parsed)): return .Ok(parsed)
case .Error(let e): return .Error(e)
default: continue
}
}
return Result.Error(Error(withMessage: "Could not parse into expression."))
return Result.Error(Error(withMessage: "\(node.range): Could not parse into expression"))
}
}