1<?php 2 3/** 4* @package s9e\TextFormatter 5* @copyright Copyright (c) 2010-2021 The s9e authors 6* @license http://www.opensource.org/licenses/mit-license.php The MIT License 7*/ 8namespace s9e\TextFormatter\Plugins\Litedown\Parser\Passes; 9 10class Superscript extends AbstractScript 11{ 12 /** 13 * {@inheritdoc} 14 */ 15 public function parse() 16 { 17 $this->parseAbstractScript('SUP', '^', '/\\^[^\\x17\\s!"#$%&\'()*+,\\-.\\/:;<=>?@[\\]^_`{}|~]++\\^?/', '/\\^\\([^\\x17()]++\\)/'); 18 } 19}