From d46a138eb0999004f705deb3007db6e37e80c5cb Mon Sep 17 00:00:00 2001 From: epriestley Date: Wed, 26 Jan 2011 07:03:52 -0800 Subject: [PATCH] Don't issue lint about strangely named classes just because they have some word character in them. --- src/lint/linter/xhpast/ArcanistXHPASTLinter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lint/linter/xhpast/ArcanistXHPASTLinter.php b/src/lint/linter/xhpast/ArcanistXHPASTLinter.php index 960eea8a..38ed96f7 100644 --- a/src/lint/linter/xhpast/ArcanistXHPASTLinter.php +++ b/src/lint/linter/xhpast/ArcanistXHPASTLinter.php @@ -904,8 +904,8 @@ class ArcanistXHPASTLinter extends ArcanistLinter { $decl_name = $declaration->getChildByIndex(1); $decl_string = $decl_name->getConcreteString(); - //Exclude strangely named classes. - if (!preg_match('/\w+/', $decl_string)) { + // Exclude strangely named classes, e.g. XHP tags. + if (!preg_match('/^\w+$/', $decl_string)) { return; }