File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -407,7 +407,7 @@ See the for-loop: URL `http://git.io/vRGTj' lines: URL
407
407
`http://git.io/vRGIh' , URL `http://git.io/vRGLE' and value
408
408
definition of 'macros': URL `http://git.io/vRGLD' ." )
409
409
(defconst clojure--sym-regexp
410
- (concat " [^" clojure--sym-forbidden-1st-chars " ][^" clojure--sym-forbidden-rest-chars " ]+ " )
410
+ (concat " [^" clojure--sym-forbidden-1st-chars " ][^" clojure--sym-forbidden-rest-chars " ]* " )
411
411
" A regexp matching a Clojure symbol or namespace alias.
412
412
Matches the rule `clojure--sym-forbidden-1st-chars' followed by
413
413
any number of matches of `clojure--sym-forbidden-rest-chars' ." ))
Original file line number Diff line number Diff line change @@ -163,7 +163,15 @@ POS."
163
163
(clojure-test-with-temp-buffer " clo.core/something"
164
164
(should (eq (clojure-test-face-at 9 9 ) 'default ))
165
165
(should (eq (clojure-test-face-at 1 8 ) 'font-lock-type-face ))
166
- (should (eq (clojure-test-face-at 10 18 ) nil ))))
166
+ (should (eq (clojure-test-face-at 10 18 ) nil )))
167
+ (clojure-test-with-temp-buffer " a/something"
168
+ (should (eq (clojure-test-face-at 1 1 ) 'font-lock-type-face ))
169
+ (should (eq (clojure-test-face-at 3 12 ) 'nil ))
170
+ (should (eq (clojure-test-face-at 2 2 ) 'default )))
171
+ (clojure-test-with-temp-buffer " abc/something"
172
+ (should (eq (clojure-test-face-at 1 3 ) 'font-lock-type-face ))
173
+ (should (eq (clojure-test-face-at 5 14 ) 'nil ))
174
+ (should (eq (clojure-test-face-at 4 4 ) 'default ))))
167
175
168
176
(ert-deftest clojure-mode-syntax-table/static-method ()
169
177
:tags '(fontification syntax-table)
You can’t perform that action at this time.
0 commit comments