Variable attributes can prefix name list

In this format, the attribute applies to all names in the list;
e.g. "global<const> print, require, math".
This commit is contained in:
Roberto Ierusalimschy
2025-05-18 11:43:43 -03:00
parent f2c1531e6c
commit abbae57c78
15 changed files with 84 additions and 60 deletions

View File

@@ -6,7 +6,7 @@
print('testing pattern matching')
global * <const>
global <const> *
local function checkerror (msg, f, ...)
local s, err = pcall(f, ...)