From 6c2c4cc1a3d0f16f5591d9946583a0080b48d997 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Wed, 7 Oct 2026 03:57:16 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20[code=20health=20improvement]=20?= =?UTF-8?q?Fix=20false=20positive=20commented-out=20code=20detection=20in?= =?UTF-8?q?=20lexer=20comments?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Horizontal42 <75383519+Horizontal42@users.noreply.github.com> --- src/engine/lexer.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/lexer.ts b/src/engine/lexer.ts index f65f79d..7a17c7f 100644 --- a/src/engine/lexer.ts +++ b/src/engine/lexer.ts @@ -16,9 +16,9 @@ export interface Lex { const WORD_RE = /^[\p{L}_]+/u; // Number forms, tried in order. Space/NBSP-grouped numbers may use a decimal -// comma ("1 000,5" — what the app itself prints with the space separator); -// comma-grouped is the en convention ("1,000"), and a comma that does not -// form groups of three is a decimal comma ("1,23" → 1.23). +// comma (e.g., "1 000,5" - what the app itself prints with the space separator). +// Comma-grouped is the en convention (e.g., "1,000"). A comma that does not +// form groups of three is a decimal comma (e.g., "1,23" -> 1.23). const NUM_SPACE_GROUPED_RE = /^\d{1,3}(?:[   ]\d{3})+(?:[.,]\d+)?(?!\d)/; const NUM_COMMA_GROUPED_RE = /^\d{1,3}(?:,\d{3})+(?:\.\d+)?(?!\d)/; const NUM_DECIMAL_COMMA_RE = /^\d+,\d+/;