libs/Parser/Node/ControlNode.php
private function withParam( string$input )
	{
		return str_replace('$_FLAG_$',"__HTSL_CTRL_FLAG_{$this->id}__",preg_replace_callback('/(?<!%)%s((?:\\/.+?(?<!\\\\)\\/.+?(?<!\\\\)\\/)+)?/',function( array$matches ){
			$param= $this->param;

			if( isset($matches[1]) ){
				array_map(...[
					function($replacer)use(&$param){
						list($pattern,$replacement,)= preg_split('/(?<!\\\\)\\//',$replacer);
						$param= preg_replace(...[
							"/$pattern/",
							preg_replace('/^\\\\_$/','',$replacement),
							$param,
						]);
					},
					preg_split(
						'/(?<!\\\\)\\/\\//'
						,
						trim($matches[1],'/')
					),
				]);
			}
			return $param;
		},$input));
	}
private function withParam( string$input )
	{
		return str_replace('$_FLAG_$',"__HTSL_CTRL_FLAG_{$this->id}__",preg_replace_callback('/(?<!%)%s((?:\\/.+?(?<!\\\\)\\/.+?(?<!\\\\)\\/)+)?/',function( array$matches ){
			$param= $this->param;

			if( isset($matches[1]) ){
				array_map(...[
					function($replacer)use(&$param){
						list($pattern,$replacement,)= preg_split('/(?<!\\\\)\\//',$replacer);
						$param= preg_replace(...[
							"/$pattern/",
							preg_replace('/^\\\\_$/','',$replacement),
							$param,
						]);
					},
					preg_split(
						'/(?<!\\\\)\\/\\//'
						,
						trim($matches[1],'/')
					),
				]);
			}
			return $param;
		},$input));
	}
private function withParam ( string $ input ) { return str_replace ( '$_FLAG_$' , "__HTSL_CTRL_FLAG_{$this->id}__" , preg_replace_callback ( '/(?<!%)%s((?:\\/.+?(?<!\\\\)\\/.+?(?<!\\\\)\\/)+)?/' , function ( array $ matches ) { $ param = $ this -> param ; if ( isset ( $ matches [ 1 ] ) ) { array_map ( ... [ function ( $ replacer ) use ( & $ param ) { list ( $ pattern , $ replacement , ) = preg_split ( '/(?<!\\\\)\\//' , $ replacer ) ; $ param = preg_replace ( ... [ "/$pattern/" , preg_replace ( '/^\\\\_$/' , '' , $ replacement ) , $ param , ] ) ; } , preg_split ( '/(?<!\\\\)\\/\\//' , trim ( $ matches [ 1 ] , '/' ) ) , ] ) ; } return $ param ; } , $ input ) ) ; }
Parse opener or closer with parameters.

@access private

@param  string $input Opener or Closer

@return string
Parse opener or closer with parameters .