local -> var; scope reformatted; singleton is killed finally

This commit is contained in:
Dmitry Boulytchev 2021-01-31 22:25:31 +03:00
parent 5ae88f820d
commit 216e716251
11067 changed files with 12168 additions and 12173 deletions

View file

@ -8,7 +8,7 @@
-- (e.g. "identifier", "string constant", etc.), used for error
-- reporting
public fun createRegexp (r, name) {
local l = [regexp (r), name];
var l = [regexp (r), name];
l
}
@ -32,7 +32,7 @@ fun createMatcher (buf, pos, line, col) {
-- Moves the position pointer on given number of characters.
fun shift (n) {
local i, l = line, c = col;
var i, l = line, c = col;
for i := pos, i < pos+n, i := i+1 do
case buf [i] of
@ -54,7 +54,7 @@ fun createMatcher (buf, pos, line, col) {
}
fun matchRegexp (r) {
local n;
var n;
if (n := regexpMatch (r[0], buf, pos)) >= 0
then Succ (substring (buf, pos, n), shift (n))