On this page:
quote-syntax

3.21 Syntax Quoting: quote-syntax

syntax

(quote-syntax datum)

Similar to quote, but produces a syntax object that preserves the lexical information and source-location information attached to datum at expansion time.

Unlike syntax (#'), quote-syntax does not substitute pattern variables bound by with-syntax, syntax-parse, or syntax-case.

Examples:

> (syntax? (quote-syntax x))

#t

> (quote-syntax (1 2 3))

#<syntax:72:0 (1 2 3)>

> (with-syntax ([a #'5])
    (quote-syntax (a b c)))

#<syntax:73:0 (a b c)>