Added regex to [[ ]] tests

This commit is contained in:
2025-05-13 00:48:19 -04:00
parent 952298ed11
commit 25e85edab0
6 changed files with 557 additions and 9 deletions

View File

@@ -4,7 +4,7 @@ use bitflags::bitflags;
use crate::{builtin::BUILTINS, libsh::{error::{ShErr, ShErrKind, ShResult}, utils::CharDequeUtils}, prelude::*};
pub const KEYWORDS: [&str;14] = [
pub const KEYWORDS: [&str;16] = [
"if",
"then",
"elif",
@@ -19,6 +19,8 @@ pub const KEYWORDS: [&str;14] = [
"done",
"case",
"esac",
"[[",
"]]"
];
pub const OPENERS: [&str;6] = [