From 7f19c62abf2e69ccf48a304e85fb4c669d7ab1a9 Mon Sep 17 00:00:00 2001 From: madsbredholt Date: Sun, 19 Apr 2026 12:51:23 +0200 Subject: [PATCH] [FREEMARKER-209] Fix "estabilished" typo in error message Corrects spelling in the naming-convention mismatch error message emitted by the FTL parser, and in a related code comment in the same token-manager section. --- freemarker-core/src/main/javacc/freemarker/core/FTL.jj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freemarker-core/src/main/javacc/freemarker/core/FTL.jj b/freemarker-core/src/main/javacc/freemarker/core/FTL.jj index 316372eaa..27d62b7b6 100644 --- a/freemarker-core/src/main/javacc/freemarker/core/FTL.jj +++ b/freemarker-core/src/main/javacc/freemarker/core/FTL.jj @@ -677,7 +677,7 @@ TOKEN_MGR_DECLS: } if (!strictSyntaxMode) { - // Legacy feature (or bug?): Tag syntax never gets estabilished in non-strict mode. + // Legacy feature (or bug?): Tag syntax never gets established in non-strict mode. // We do establish the naming convention though. checkNamingConvention(tok, tokenNamingConvention); SwitchTo(newLexState); @@ -748,7 +748,7 @@ TOKEN_MGR_DECLS: : "??? (internal error)" )) + (namingConventionEstabilisher != null - ? "estabilished by auto-detection at " + ? "established by auto-detection at " + _MessageUtil.formatPosition( namingConventionEstabilisher.beginLine, namingConventionEstabilisher.beginColumn) + " by token " + StringUtil.jQuote(namingConventionEstabilisher.image.trim())