From 3efd236804fc5e732dd39e75d00ec126b63b058d Mon Sep 17 00:00:00 2001 From: matt rice Date: Sun, 3 May 2026 05:21:30 -0700 Subject: [PATCH] Fix copy/paste error in setting up DEFAULT_LEX_FLAGS.case_insensitive. This was accidentally defaulting to the default value for `allow_wholeline_comments`. This shouldn't have any effect, because `DEFAULT_LEX_FLAGS.allow_wholeline_comments` defaults to a different value `Some(false)` vs `None`. The `None` value sets it use the regex default value which is `false`. --- lrlex/src/lib/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lrlex/src/lib/parser.rs b/lrlex/src/lib/parser.rs index 784a83f11..cd9885a85 100644 --- a/lrlex/src/lib/parser.rs +++ b/lrlex/src/lib/parser.rs @@ -172,7 +172,7 @@ where *posix_escapes = posix_escapes.or(DEFAULT_LEX_FLAGS.posix_escapes); *allow_wholeline_comments = allow_wholeline_comments.or(DEFAULT_LEX_FLAGS.allow_wholeline_comments); - *case_insensitive = case_insensitive.or(DEFAULT_LEX_FLAGS.allow_wholeline_comments); + *case_insensitive = case_insensitive.or(DEFAULT_LEX_FLAGS.case_insensitive); *ignore_whitespace = ignore_whitespace.or(DEFAULT_LEX_FLAGS.ignore_whitespace); *swap_greed = swap_greed.or(DEFAULT_LEX_FLAGS.swap_greed); *unicode = unicode.or(DEFAULT_LEX_FLAGS.unicode);