From 41ff4beb2bd7319dc700cdbe1b462e97f8828be0 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Thu, 24 Aug 2023 11:58:16 +0200 Subject: [PATCH] [php] Recognize "//" as eol comment --- .../java/net/sourceforge/pmd/lang/php/PhpLanguageModule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmd-php/src/main/java/net/sourceforge/pmd/lang/php/PhpLanguageModule.java b/pmd-php/src/main/java/net/sourceforge/pmd/lang/php/PhpLanguageModule.java index 8e6d9f33d9..1b1169f054 100644 --- a/pmd-php/src/main/java/net/sourceforge/pmd/lang/php/PhpLanguageModule.java +++ b/pmd-php/src/main/java/net/sourceforge/pmd/lang/php/PhpLanguageModule.java @@ -20,6 +20,6 @@ public class PhpLanguageModule extends CpdOnlyLanguageModuleBase { @Override public Tokenizer createCpdTokenizer(LanguagePropertyBundle bundle) { - return new AnyTokenizer("#"); + return new AnyTokenizer("#|//"); } }