summaryrefslogtreecommitdiffstats
path: root/src/CheckBasicStyle.lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xsrc/CheckBasicStyle.lua3
1 files changed, 3 insertions, 0 deletions
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"},
}