From ef2d5027d33ab3ec64c4e93d62749032d187d5c2 Mon Sep 17 00:00:00 2001 From: Mattes D Date: Sun, 12 Apr 2020 09:24:30 +0200 Subject: Removed extended ASCII, and added a check against it. (#4642) --- src/CheckBasicStyle.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/CheckBasicStyle.lua') diff --git a/src/CheckBasicStyle.lua b/src/CheckBasicStyle.lua index 4376d460a..df25c64ca 100755 --- a/src/CheckBasicStyle.lua +++ b/src/CheckBasicStyle.lua @@ -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"}, } -- cgit v1.2.3