Parser: Add accessors needed by CodeMirror
authorKunal Mehta <legoktm@member.fsf.org>
Tue, 14 Aug 2018 05:44:48 +0000 (22:44 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Tue, 14 Aug 2018 05:44:48 +0000 (22:44 -0700)
Change-Id: Ia2d98baf6caed2cd779cb00aceba5785cf13d633

includes/parser/Parser.php

index 96bf892..b1e3928 100644 (file)
@@ -5489,6 +5489,23 @@ class Parser {
                );
        }
 
+       /**
+        * @since 1.32
+        * @return array
+        */
+       public function getFunctionSynonyms() {
+               $this->firstCallInit();
+               return $this->mFunctionSynonyms;
+       }
+
+       /**
+        * @since 1.32
+        * @return string
+        */
+       public function getUrlProtocols() {
+               return $this->mUrlProtocols;
+       }
+
        /**
         * Replace transparent tags in $text with the values given by the callbacks.
         *