loadJSON($filename); self::$storage[$scopeName] = $grammar; return $grammar; } } return false; } /** * Sets a grammar in the registry. * * @param string $scopeName - The scope name (eg: text.html.php) of the grammar that is being set * @param dW\Lit\Grammar - The grammar to be put into the registry * @return bool */ public static function set(string $scopeName, Grammar $grammar): bool { self::$storage[$scopeName] = $grammar; return true; } }