File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -901,13 +901,24 @@ DESCRIPTION is the description of the spec."
901
901
(2 3 font-lock-keyword-face )
902
902
( 5 7 font-lock-function-name-face )))
903
903
904
- (when-fontifying-it " should handle lambda-params"
904
+ (when-fontifying-it " should handle lambda-params %, %1, %n... "
905
905
(" #(+ % %2 %3 %&)"
906
906
(5 5 font-lock-variable-name-face )
907
907
(7 8 font-lock-variable-name-face )
908
908
(10 11 font-lock-variable-name-face )
909
909
(13 14 font-lock-variable-name-face )))
910
910
911
+ (when-fontifying-it " should handle multi-digit lambda-params"
912
+ ; ; % args with >1 digit are rare and unidiomatic but legal up to
913
+ ; ; `MAX_POSITIONAL_ARITY` in Clojure's compiler, which as of today is 20
914
+ (" #(* %10 %15 %19 %20)"
915
+ ; ; it would be better if this were just `font-lock-variable-name-face` but
916
+ ; ; it seems to work as-is
917
+ (5 7 various-faces)
918
+ (9 11 font-lock-variable-name-face )
919
+ (13 15 font-lock-variable-name-face )
920
+ (17 19 various-faces)))
921
+
911
922
(when-fontifying-it " should handle nils"
912
923
(" (= nil x)"
913
924
(4 6 font-lock-constant-face ))
You can’t perform that action at this time.
0 commit comments