highlight.js icon indicating copy to clipboard operation
highlight.js copied to clipboard

(lisp) stop coloring when «'(*» is found

Open texcoffier opened this issue 1 year ago • 2 comments

Describe the issue/behavior that seems buggy

When an expression starts with «'(*» the coloring stops for the following lines until a «*» is found.

Sample Code or Instructions to Reproduce

(+ 6 7)   ; colored
'(* 6 7)  ; not colored
(+ 6 7)   ; not colored
(+ 6 7)   ; not colored
'(* 6 7)  ; 6 7 colored, star restarts coloring

(+ 6 7)   ; colored
'(* 6 7)  ; not colored
(+ 6 7)   ; not colored
(+ 6 7)   ; not colored
(* 6 7)   ; 6 7 colored, star restarts coloring

(* 6 7)   ; colored
'(* 6 7)  ; not colored
(+ 6 7)   ; not colored
(+ 6 7)   ; not colored
(+ *)     ; not colored, star restarts coloring

(* 6 7)   ; colored
'(* 6 7)  ; not colored
(+ 6 7)   ; not colored, * in comment restart coloring but not immediatly
(+ 6 7)   ; 6 7 colored

texcoffier avatar Jan 29 '24 06:01 texcoffier

What should it look like? Github isn't helping since it doesn't seem to color the operators...

joshgoebel avatar Feb 13 '24 02:02 joshgoebel

All the «+», «6» and «7» should be colored.

It is as «'(» was eating all the characters until a «» was found.

texcoffier avatar Feb 13 '24 06:02 texcoffier