                     (.match stream #"[0-9]*\.?[0-9]+")
                     "number"
                     :else
-                    (do (.next stream) nil)))}))
-  (reset! wdl-defined? true))
+                    (do (.next stream) nil)))})))
 
 (react/defc CodeMirror
   {:add-listener

   (fn [{:keys [refs props locals]}]
     (let [{:keys [mode line-numbers? read-only? text]} props]
       (swap! locals assoc :code-mirror-instance
              ((get-codemirror) (react/find-dom-node (@refs "container"))
               (clj->js
                (merge
                 (when text {:value text})


(defn- define-wdl []
  (js-invoke
   @codemirror-instance "defineMode" "wdl"
   (fn []
     #js{:token (fn [stream]
                  (.eatSpace stream)
