diff options
Diffstat (limited to 'public/vendor/codemirror/mode/clojure')
-rw-r--r--[-rwxr-xr-x] | public/vendor/codemirror/mode/clojure/clojure.js | 3 | ||||
-rw-r--r--[-rwxr-xr-x] | public/vendor/codemirror/mode/clojure/index.html | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/public/vendor/codemirror/mode/clojure/clojure.js b/public/vendor/codemirror/mode/clojure/clojure.js index d531022a..44948d04 100755..100644 --- a/public/vendor/codemirror/mode/clojure/clojure.js +++ b/public/vendor/codemirror/mode/clojure/clojure.js @@ -96,6 +96,9 @@ CodeMirror.defineMode("clojure", function (options) { if ( '.' == stream.peek() ) { stream.eat('.'); stream.eatWhile(tests.digit); + } else if ('/' == stream.peek() ) { + stream.eat('/'); + stream.eatWhile(tests.digit); } if ( stream.eat(tests.exponent) ) { diff --git a/public/vendor/codemirror/mode/clojure/index.html b/public/vendor/codemirror/mode/clojure/index.html index 3ecf4c48..81294bc1 100755..100644 --- a/public/vendor/codemirror/mode/clojure/index.html +++ b/public/vendor/codemirror/mode/clojure/index.html @@ -78,6 +78,9 @@ \tab \return \backspace \u1000 \uAaAa \u9F9F) +;; Let's play with numbers +(+ 1 -1 1/2 -1/2 -0.5 0.5) + </textarea></form> <script> var editor = CodeMirror.fromTextArea(document.getElementById("code"), {}); |