1
0

Removed extended ASCII, and added a check against it. (#4642)

This commit is contained in:
Mattes D
2020-04-12 09:24:30 +02:00
committed by GitHub
parent 8914355895
commit ef2d5027d3
5 changed files with 9 additions and 5 deletions

View File

@@ -202,6 +202,9 @@ local g_ViolationPatterns =
-- Check if "else" is on the same line as a brace.
{"}%s*else", "else has to be on a separate line"},
{"else%s*{", "else has to be on a separate line"},
-- Don't allow characters other than ASCII 0 - 127:
{"[" .. string.char(128) .. "-" .. string.char(255) .. "]", "Character in the extended ASCII range (128 - 255) not allowed"},
}