Skip to content

Commit 0a00d9d

Browse files
committed
Add old TODOs from git stash
I had some new tests + bugfixes some months back, but then Bram introduced the new NFA regexp engine late into 7.9** and everything was broken for a while, so I decided to get out of Dodge until the dust settled. Now that things are settling down, I've pulled these changes from my git stash. None of them are complete, and require some thought.
1 parent 9258651 commit 0a00d9d

3 files changed

Lines changed: 29 additions & 1 deletion

File tree

clj/test/vim_clojure_static/syntax_test.clj

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,28 @@
9292

9393
(comment (test #'number-literals-test))
9494

95+
;; TODO: Finish me! (this was in an old git stash)
96+
;; (defsyntaxtest keywords-test
97+
;; (with-format "%s"
98+
;; ":1" kw
99+
;; ":A" kw
100+
;; ":a" kw
101+
;; ":αβγ" kw
102+
;; "::a" kw
103+
;; ":a/b" kw
104+
;; ":a:b" kw
105+
;; ":a:b/:c:b" kw
106+
;; ":a/b/c/d" kw
107+
;; "::a/b" !kw
108+
;; "::" !kw
109+
;; ":a:" !kw
110+
;; ":a/" !kw
111+
;; ":/" !kw
112+
;; ":" !kw
113+
;; ))
114+
;;
115+
;; (comment (test #'keywords-test))
116+
95117
(defsyntaxtest java-regexp-literals-test
96118
["#\"%s\""
97119
[;; http://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html

indent/clojure.vim

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
" License: Same as Vim
99
" Last Change: 30 January 2013
1010

11+
" TODO: Indenting after multibyte characters is broken:
12+
" (let [Δ (if foo
13+
" bar ; Indent error
14+
" baz)])
15+
1116
if exists("b:did_indent")
1217
finish
1318
endif

syntax/clojure.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ syntax cluster clojureRegexpCharPropertyClasses contains=clojureRegexpPosixCharC
9696
syntax cluster clojureRegexpCharClasses contains=clojureRegexpPredefinedCharClass,clojureRegexpCharClass,@clojureRegexpCharPropertyClasses
9797
syntax region clojureRegexpCharClass start="\\\@<!\[" end="\\\@<!\]" contained contains=clojureRegexpPredefinedCharClass,@clojureRegexpCharPropertyClasses
9898
syntax match clojureRegexpBoundary "\\[bBAGZz]" contained display
99-
syntax match clojureRegexpBoundary "[$^]" contained display
99+
" TODO: Old bugfix from git stash
100+
" syntax match clojureRegexpBoundary "\\\@<![$^]" contained display
100101
syntax match clojureRegexpQuantifier "[?*+][?+]\=" contained display
101102
syntax match clojureRegexpQuantifier "\v\{\d+%(,|,\d+)?}\??" contained display
102103
syntax match clojureRegexpOr "|" contained display

0 commit comments

Comments
 (0)