Skip to content

Scheme - inconsistent highlighting #2890

@johbra

Description

@johbra

The highlighting of the Scheme function
(define add-point (lambda [p1 p2] (make-point (+ (point-x p1) (point-x p2)) (+ (point-y p1) (point-y p2)))))
using the following HTML document
`

<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.4.0/highlight.min.js"></script> <script charset="UTF-8" src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.4.0/languages/scheme.min.js"></script> <script>hljs.initHighlightingOnLoad();</script>

Code example

(define add-point
  (lambda [p1 p2]
    (make-point
      (+ (point-x p1) (point-x p2))
      (+ (point-y p1) (point-y p2)))))
        
` yields inconsistent highlighting: The fourth line of the function had to be highlighted exactly as the fifth line. But that's not the case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions