Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions project.clj
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
(defproject clooj "0.3.4"
:description "clooj, a small IDE for clojure"
(defproject clooj "0.3.4.1-SNAPSHOT"
:description "the start of a seesaw version of clooj, a small IDE for clojure"
:main clooj.core
:dependencies [[clojure "1.3.0"]
[clj-inspector "0.0.12"]
[slamhound "1.2.0"]
[com.cemerick/pomegranate "0.0.11"]
[com.fifesoft/rsyntaxtextarea "2.0.2"]
]
)
[seesaw "1.4.1"]]
:jvm-opts ~(if (= (System/getProperty "os.name") "Mac OS X") ["-Xdock:name=Clooj"] [])
:java-source-paths ["src"]
:java-source-path "src"
;; Use this for Leiningen version 1
:resources-path "resource"
;; Use this for Leiningen version 2
:resource-paths ["resource"]
)
7 changes: 6 additions & 1 deletion src/clooj/brackets.clj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
(ns clooj.brackets
(:import (javax.swing.text JTextComponent))
(:require [clojure.string :as string])
(:use [clooj.utils :only (count-while get-text-str)]))
(:use [clooj.utils :only (count-while get-text-str)]
[seesaw.core :only (native!)]))

;; as seesaw docs instruct, native! is called before any other seesaw calls
(native!)


(defn mismatched-brackets [a b]
(and (or (nil? a) (some #{a} [\( \[ \{]))
Expand Down
Loading