File tree 2 files changed +14
-15
lines changed
2 files changed +14
-15
lines changed Original file line number Diff line number Diff line change @@ -878,10 +878,9 @@ any number of matches of `clojure--sym-forbidden-rest-chars'."))
878
878
" \\ (?:#?^\\ (?:{[^}]*}\\ |\\ sw+\\ )[ \r\n\t ]*\\ )*"
879
879
" \\ (\\ sw+\\ )?" )
880
880
(2 font-lock-type-face nil t ))
881
- ; ; Function definition (anything that starts with def and is not
882
- ; ; listed above)
883
- (,(concat " (\\ (?:" clojure--sym-regexp " /\\ )?"
884
- " \\ (def[^ \r\n\t ]*\\ )"
881
+ ; ; Function definition
882
+ (,(concat " (\\ (?:clojure.core/\\ )?"
883
+ " \\ (defn\\ )"
885
884
; ; Function declarations
886
885
" \\ >"
887
886
; ; Any whitespace
Original file line number Diff line number Diff line change @@ -776,17 +776,17 @@ DESCRIPTION is the description of the spec."
776
776
(6 42 clojure-keyword-face)))
777
777
778
778
(when-fontifying-it " should handle namespaced defs"
779
- (" (_c4 /defn bar [] nil)"
780
- (2 4 font-lock-type-face )
781
- (5 5 nil )
782
- (6 9 font-lock-keyword-face )
783
- (11 13 font-lock-function-name-face ))
784
-
785
- (" (clo /defrecord foo nil)"
786
- (2 4 font-lock-type-face )
787
- (5 5 nil )
788
- (6 14 font-lock-keyword-face )
789
- (16 18 font-lock-function-name -face ))
779
+ (" (clojure.core /defn bar [] nil)"
780
+ (2 13 font-lock-type-face )
781
+ (14 14 nil )
782
+ (15 18 font-lock-keyword-face )
783
+ (20 22 font-lock-function-name-face ))
784
+
785
+ (" (clojure.core /defrecord foo nil)"
786
+ (2 13 font-lock-type-face )
787
+ (14 14 nil )
788
+ (15 23 font-lock-keyword-face )
789
+ (25 27 font-lock-type -face ))
790
790
791
791
(" (s/def ::keyword)"
792
792
(2 2 font-lock-type-face )
You can’t perform that action at this time.
0 commit comments