From 836230b7e702af0e59ecc725f6450bbe2482b019 Mon Sep 17 00:00:00 2001 From: Wener Date: Tue, 12 Sep 2023 10:36:12 +0200 Subject: [PATCH] Added support for "@" in identifiers This is to resolve the following error on a typescript file: [main] ERROR net.sourceforge.pmd.cli - Error while tokenizing: Lexical error in file '.\TableList.js' at line 67, column 1: "@" (64), after : "" (in lexical state DEFAULT) --- pmd-javascript/etc/grammar/Ecmascript5.jj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pmd-javascript/etc/grammar/Ecmascript5.jj b/pmd-javascript/etc/grammar/Ecmascript5.jj index cd7cb8c5e8..a3194f1bd6 100644 --- a/pmd-javascript/etc/grammar/Ecmascript5.jj +++ b/pmd-javascript/etc/grammar/Ecmascript5.jj @@ -281,7 +281,8 @@ TOKEN : | [ "$", - "_" + "_", + "@" ] |