@@ -228,7 +228,7 @@ BEGIN {
228
228
# - the first argument ($1) should be the whole word module
229
229
# - the second argument ($2) should be a valid module name
230
230
$1 ~ /^module$/ &&
231
- $2 ~ /^[a-zA-Z][a-zA-Z1 -9_]*$/ {
231
+ $2 ~ /^[a-zA-Z][a-zA-Z0 -9_]*$/ {
232
232
# count module names per file to avoid having modules twice in our list
233
233
if (modc[FILENAME,$2]++ == 0) {
234
234
# add to the module list, the generated module name is expected
@@ -241,7 +241,7 @@ $2 ~ /^[a-zA-Z][a-zA-Z1-9_]*$/ {
241
241
# - the first argument ($1) should be the whole word use
242
242
# - the second argument ($2) should be a valid module name
243
243
$1 ~ /^use$/ &&
244
- $2 ~ /^[a-zA-Z][a-zA-Z1 -9_]*,?$/ {
244
+ $2 ~ /^[a-zA-Z][a-zA-Z0 -9_]*,?$/ {
245
245
# Remove a trailing comma from an optional only statement
246
246
gsub(/,/, "", $2)
247
247
# count used module names per file to avoid using modules twice in our list
@@ -262,7 +262,7 @@ $2 ~ /^["'].+["']$/ {
262
262
# count included files per file to avoid having duplicates in our list
263
263
if (incc[FILENAME,$2]++ == 0) {
264
264
# Add the included file to our list, this might be case-sensitive
265
- inc[++ii] = sprintf("$(%s ) += %s ", FILENAME, $2)
265
+ inc[++ii] = sprintf("$(%s ) += $( %s ) ", FILENAME, $2)
266
266
}
267
267
}
268
268
0 commit comments