1313 * The `regexMatchedAgainst` predicate mirrors the intent of the Java
1414 * `RegexFlowConfigs.qll` library.
1515 *
16- * All standard `std::regex` grammars are now modelled : ECMAScript (default),
16+ * All standard `std::regex` grammars are now modeled : ECMAScript (default),
1717 * POSIX BRE (`basic`/`grep`), and POSIX ERE (`extended`/`egrep`/`awk`).
1818 * Grammar selection and ReDoS-eligibility are independent axes — see
1919 * `isBacktrackingEngine` for the latter.
@@ -388,24 +388,24 @@ predicate hasNonEcmaScriptGrammarFlag(StringLiteral regex) {
388388 *
389389 * - `Ecma()` — ECMAScript, the default grammar used by `std::regex`.
390390 * Selected either implicitly (no explicit grammar flag) or
391- * explicitly via `std::regex_constants::ECMAScript`. Modelled
391+ * explicitly via `std::regex_constants::ECMAScript`. Modeled
392392 * by `EcmaRegExp`.
393393 * - `Bre()` — POSIX Basic Regular Expressions (selected via the `basic`
394- * or `grep` flags). Modelled by `BreRegExp`.
394+ * or `grep` flags). Modeled by `BreRegExp`.
395395 * - `Ere()` — POSIX Extended Regular Expressions (selected via the
396- * `extended`, `egrep`, or `awk` flags). Modelled by
396+ * `extended`, `egrep`, or `awk` flags). Modeled by
397397 * `EreRegExp`.
398398 *
399399 * All three cases are exercised by the parser today; every grammar has a
400400 * concrete subclass, so `hasConcreteGrammar` holds for every regex the
401401 * parser sees.
402402 */
403403newtype TRegexGrammar =
404- /** The ECMAScript grammar (the default for `std::regex`), modelled by `EcmaRegExp`. */
404+ /** The ECMAScript grammar (the default for `std::regex`), modeled by `EcmaRegExp`. */
405405 Ecma ( ) or
406- /** The POSIX Basic Regular Expression grammar (`basic`/`grep` flags), modelled by `BreRegExp`. */
406+ /** The POSIX Basic Regular Expression grammar (`basic`/`grep` flags), modeled by `BreRegExp`. */
407407 Bre ( ) or
408- /** The POSIX Extended Regular Expression grammar (`extended`/`egrep`/`awk` flags), modelled by `EreRegExp`. */
408+ /** The POSIX Extended Regular Expression grammar (`extended`/`egrep`/`awk` flags), modeled by `EreRegExp`. */
409409 Ere ( )
410410
411411/**
@@ -432,7 +432,7 @@ TRegexGrammar regexGrammar(StringLiteral regex) {
432432/**
433433 * Holds if `grammar` has a concrete `RegExp` subclass and can therefore be
434434 * admitted by the parser's characteristic predicate. All three grammars
435- * (`Ecma()`, `Ere()`, `Bre()`) are modelled today, so this holds for every
435+ * (`Ecma()`, `Ere()`, `Bre()`) are modeled today, so this holds for every
436436 * grammar the standard defines. Kept as a helper so that any future grammar
437437 * scaffolding can be admitted by adding a single disjunct here.
438438 */
0 commit comments