Skip to content

Commit 0efae51

Browse files
Bozhidar Batsovkommen
authored andcommitted
Fix the font-lock of interop calls like getX
1 parent 4086f47 commit 0efae51

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

clojure-mode-test.el

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,13 @@ POS."
118118
(should (eq (clojure-test-face-at 1 5) 'font-lock-type-face))
119119
(should (eq (clojure-test-face-at 7 16) 'clojure-interop-method-face))))
120120

121+
(ert-deftest clojure-mode-syntax-table/interop-method ()
122+
:tags '(fontification syntax-table)
123+
(should (eq (clojure-test-face-at 1 11 ".someMethod") 'clojure-interop-method-face))
124+
(should (eq (clojure-test-face-at 1 10 "someMethod") 'clojure-interop-method-face))
125+
(should (eq (clojure-test-face-at 1 11 "topHttpTest") 'clojure-interop-method-face))
126+
(should (eq (clojure-test-face-at 1 4 "getX") 'clojure-interop-method-face)))
127+
121128
(ert-deftest clojure-mode-syntax-table/constant ()
122129
:tags '(fontification syntax-table)
123130
(should (eq (clojure-test-face-at 1 5 "CONST") 'font-lock-constant-face))

0 commit comments

Comments
 (0)