File: example.rkt.faceup

package info (click to toggle)
racket-mode 20250711~git.8a80578-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,024 kB
  • sloc: lisp: 17,215; makefile: 106
file content (479 lines) | stat: -rw-r--r-- 18,499 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
«m:;; »«x:-*- racket-indent-sequence-depth: 100; racket-indent-curly-as-sequence: t; faceup-properties: (face syntax-table); -*-
»
«m:;;; »«x:NOTE: After changing this file you will need to M-x faceup-write-file
»«m:;;; »«x:to regenerate the .faceup test comparison file.
»«m:;;;»«x:
»«m:;;; »«x:NOTE: You may need to disable certain features temporarily while
»«m:;;; »«x:doing M-x faceup-write-file. See CONTRIBUTING.md for examples.
»
«k:#lang» «v:racket»

(«k:require» xml)
(«k:provide» valid-bucket-name?)

«m:;; »«x:Various def* forms are font-locked:
»
(«k:define» («f:function» foo)
  «c:#t»)

(«k:define» ((«f:curried-function» x) y)
  («b:list» x y))

(«k:define» «v:a-var» «c:10»)

(«b:define/contract» («f:f2» x)
  («b:any/c» . «b:->» . «b:any»)
  «c:#t»)

(«k:define-values» («v:1st-var 2nd-var») («b:values» «c:1» «c:2»))

(define-thing «v:foo»)  «m:;»«x:bug 276
»
«m:;; »«x:let: font-lock identifiers
»
(«k:let» ([«v:foo» «c:10»]
      [«v:bar» «c:20»])
  foo)

(«k:let» «f:loop» ([«v:x» «c:10»])
  («k:unless» («b:zero?» x)
    (loop («b:sub1» x))))

(«k:let*» ([«v:foo» «c:10»]
       [«v:bar» «c:20»])
  foo)

(«k:let-values» ([(«v:a» «v:b») («b:values» «c:1» «c:2»)])
  («b:values» a b))

(«k:let*-values» ([(«v:a» «v:b») («b:values» «c:1» «c:2»)])
  («b:values» a b))

(«k:letrec-values» ([(«v:a» «v:b») («b:values» «c:1» «c:2»)])
  («b:values» a b))

(«k:let-syntax» ([«v:foo» «(syntax-table):(6):«:racket-reader-syntax-quoted-symbol-face:#'»»«:racket-reader-syntax-quoted-symbol-face:foo»])
  foo)

(«k:letrec-syntax» ([«v:foo» «(syntax-table):(6):«:racket-reader-syntax-quoted-symbol-face:#'»»«:racket-reader-syntax-quoted-symbol-face:foo»])
  foo)

(«k:let-syntaxes» ([(«v:foo») «(syntax-table):(6):«:racket-reader-syntax-quoted-symbol-face:#'»»«:racket-reader-syntax-quoted-symbol-face:foo»])
  foo)

(«k:letrec-syntaxes» ([(«v:foo») «(syntax-table):(6):«:racket-reader-syntax-quoted-symbol-face:#'»»«:racket-reader-syntax-quoted-symbol-face:foo»])
  foo)

(«k:letrec-syntaxes+values» ([(«v:foo») «(syntax-table):(6):«:racket-reader-syntax-quoted-symbol-face:#'»»«:racket-reader-syntax-quoted-symbol-face:foo»])
                        ([(a b) («b:values» «c:1» «c:2»)])
  foo)

«m:;; »«x:for/fold is indented correctly:
»(«k:for/fold» ([str «s:""»])
          ([ss '(«s:"a"» «s:"b"» «s:"c"»)])
  («b:string-append» str ss))

(«k:for/foldr» ([str «s:""»])
           ([ss '(«s:"a"» «s:"b"» «s:"c"»)])
  («b:string-append» str ss))

«m:;; »«x:Auto-converts word `lambda` to `λ`:
»(«k:lambda» (x) «c:#t»)

«m:;; »«x:Or use M-C-y to insert to insert `λ` char.
»
«m:;; »«x:Smart indentation for quoted lists:
»'(«c:1» «c:2»
  «c:3» «c:4»)

«m:;; »«x:Smart indentation for vector literals:
»«(syntax-table):(6):#»(«c:1» «c:2»
  «c:3» «c:4»)

«m:;; »«x:Smart indentation for Rackjure dict literals:
»(«k:module» «f:x» «v:rackjure»
  {«:racket-reader-quoted-symbol-face:'a» «c:0»
   «:racket-reader-quoted-symbol-face:'b» «c:2»})

«m:;; »«x:Silly test submodule example.
»«m:;; »«x:Try using C-c C-f to Fold (hide) it, and C-c C-u to Unfold it.
»(«k:module+» «f:test»
  («k:require» rackunit)
  (check-true «c:#t»))

«m:;; »«x:Single line comment
»
«x:#|

Multi-line
comment

|#»

«m:;; »«x:Issue 362
»
«x:#|aaa() |#»

«x:#|(hello)|#»

«(syntax-table):(6):«m:#;»»«:racket--sexp-comment--default:(sexpr comment)»

«m:;; »«x:Nested sexpr comments
»
(«b:list» «c:2»
      «(syntax-table):(6):«m:#;»»«:racket--sexp-comment--font-lock-constant-face:2»)

(«b:list» «c:1»
      «(syntax-table):(6):«m:#;»»«:racket--sexp-comment--font-lock-constant-face:4»
      «(syntax-table):(6):«m:#;»»«:racket--sexp-comment--default:(»«:racket--sexp-comment--font-lock-constant-face:3»«:racket--sexp-comment--default:)»)

(«k:let» («(syntax-table):(6):«m:#;»»«:racket--sexp-comment--default:[»«:racket--sexp-comment--font-lock-variable-name-face:x»«:racket--sexp-comment--default: «(syntax-table):(6):#;»»«:racket--sexp-comment--font-lock-constant-face:1»«:racket--sexp-comment--default:]»
      [«v:y» «c:2»])
  y)

«m:;; »«x:Issue 388
»«c:1» «m:; »«(syntax-table):(6):«x:#;»»«x:
»«c:2»

«m:;; »«x:Issue 408
»
«s:"«(syntax-table):(6):#;»"»whatever
«s:"«(syntax-table):(6):#;»"»(whatever)
«s:"«(syntax-table):(6):#;»"»
(whatever)

«m:;; »«x:Issue 432
»
«(syntax-table):(6):«m:#;»» «(syntax-table):(6):«m:#;»» «:racket--sexp-comment--racket-reader-quoted-symbol-face:'comment-me» «:racket--sexp-comment--racket-reader-quoted-symbol-face:'comment-me» «:racket-reader-quoted-symbol-face:'but-not-me»

«(syntax-table):(6):«m:#;#;»» «:racket--sexp-comment--racket-reader-quoted-symbol-face:'comment-me» «:racket--sexp-comment--racket-reader-quoted-symbol-face:'comment-me» «:racket-reader-quoted-symbol-face:'but-not-me»

«(syntax-table):(6):«m:#;»» «(syntax-table):(6):«m:#;»» «(syntax-table):(6):«m:#;»» «:racket--sexp-comment--racket-reader-quoted-symbol-face:'comment-me» «:racket--sexp-comment--racket-reader-quoted-symbol-face:'comment-me» «:racket--sexp-comment--racket-reader-quoted-symbol-face:'comment-me» «:racket-reader-quoted-symbol-face:'but-not-me»

«(syntax-table):(6):«m:#;#;#;»» «:racket--sexp-comment--racket-reader-quoted-symbol-face:'comment-me» «:racket--sexp-comment--racket-reader-quoted-symbol-face:'comment-me» «:racket--sexp-comment--racket-reader-quoted-symbol-face:'comment-me» «:racket-reader-quoted-symbol-face:'but-not-me»

«(syntax-table):(6):«m:#;»» «m:;; »«x:comment
»«m:;; »«x:comment
»«(syntax-table):(6):«m:#;»» «x:#| comment |#»
«:racket--sexp-comment--racket-reader-quoted-symbol-face:'comment-me»
«:racket--sexp-comment--racket-reader-quoted-symbol-face:'comment-me»
«:racket-reader-quoted-symbol-face:'but-not-me»


(«k:define» «v:x» «:racket-here-string-face:#<<FOO«(syntax-table):(15):
»asdfasdf
asdfasdf
asdfasdf
FOO«(syntax-table):(15):
»»  )

«(syntax-table):(6):«m:#;»»«:racket--sexp-comment--default:(»«:racket--sexp-comment--font-lock-keyword-face:define»«:racket--sexp-comment--default: »«:racket--sexp-comment--font-lock-variable-name-face:x»«:racket--sexp-comment--default: »«:racket--sexp-comment--racket-here-string-face:#<<BAR«(syntax-table):(15):
»asdfasdf
asdfasdf
asdfasdf
BAR«(syntax-table):(15):
»»«:racket--sexp-comment--default:    )»

(«k:define» «v:x» «:racket-here-string-face:#<<Hello World«(syntax-table):(15):
»asdfasdf
asdfasdf
asdfasdf
Hello World«(syntax-table):(15):
»»  )

«(syntax-table):(6):«m:#;»»«:racket--sexp-comment--default:(»«:racket--sexp-comment--font-lock-keyword-face:define»«:racket--sexp-comment--default: »«:racket--sexp-comment--font-lock-variable-name-face:x»«:racket--sexp-comment--default: »«:racket--sexp-comment--racket-here-string-face:#<<Hi Racket«(syntax-table):(15):
»asdfasdf
asdfasdf
asdfasdf
Hi Racket«(syntax-table):(15):
»»«:racket--sexp-comment--default:    )»

«(syntax-table):(2):|identifier with spaces|»

«(syntax-table):(2):|;no comment|»

«(syntax-table):(2):| #|»no comment«(syntax-table):(2):|# |»

«m:;; »«x:Issue 735
»«(syntax-table):(2):|foo|» «(syntax-table):(2):|bar|»

(«k:define» («f:a-function» x «:racket-keyword-argument-face:#:keyword» [y «c:0»])
  («k:and» («b:append» («b:car» '(«c:1» «c:2» «c:3»))))
  («b:regexp-match?» «(syntax-table):(6):«c:#rx»»«s:"foobar"» «s:"foobar"»)
  («b:regexp-match?» «(syntax-table):(6):«c:#px»»«s:"foobar"» «s:"foobar"»)
  («k:define» «v:a» «c:1»)
  («k:let» ([«v:a» «s:"foo"»]
        [«v:b» «s:"bar"»])
    («b:displayln» b))
  («k:let*» ([«v:a» «s:"foo"»]
         [«v:b» «s:"bar"»])
    («b:displayln» b))
  («k:let-values» ([(«v:a» «v:b») («b:values» «c:1» «c:2»)])
    «c:#t»)
  («k:for/list» ([x («k:in-list» («b:list» «c:1» «c:2» («b:list» «c:3» «c:4»)))])
    («k:cond» [(«b:pair?» x) («b:car» x)]
          [«k:else» x])))

«m:;; »«x:Issue 261
»«s:"@«(syntax-table):(2):|widget-id|»"» @«(syntax-table):(2):|foo|»

«m:;; »«x:Issue 298
»(«k:define» «v:x» («k:begin» «s:"|"» '\|))

«m:;; »«x:Issue 376
»(«k:define» «(syntax-table):(2):«v:||»» («(syntax-table):(2):|list|»))

(«k:define» («f:foo»)
  («k:let» ([«v:x» «c:10»])
    «c:#t»)

  («k:let» ([«v:x» «c:1»]
        [«v:y» «c:2»])
    «c:#t»)

  («k:define» «v:1/2-the-way» «c:0»)
  («k:define» «v:less-than-1/2» «c:0»)

  «m:;; »«x:Self-eval examples
»  («b:values»
   1/2-the-way                            «m:;»«x:should NOT be self-eval
»   less-than-1/2                          «m:;»«x:should NOT be self-eval
»   «c:+inf.0» «c:-inf.0» «c:+inf.f» «c:-inf.f» «c:+inf.t» «c:-inf.t»
   «c:+nan.0» «c:-nan.0» «c:+nan.f» «c:-nan.f» «c:+nan.t» «c:-nan.t»
   «c:#t» «c:#T» «c:#true»
   «c:#f» «c:#F» «c:#false»
   «c:1»
   «c:1.0»
   «c:1/2»
   «c:-1/2»
   «c:#b100»
   «c:#o123»
   «c:#d123»
   «c:#x7f7f»
   «:racket-reader-quoted-symbol-face:'symbol»
   «(syntax-table):(2):«:racket-reader-quoted-symbol-face:'|symbol with spaces|»»
   «(syntax-table):(2):«:racket-reader-quoted-symbol-face:'|;no comment|»»
   «(syntax-table):(2):«:racket-reader-quoted-symbol-face:'| #|»»«:racket-reader-quoted-symbol-face:no comment«(syntax-table):(2):|# |»»
   «:racket-reader-quoted-symbol-face:'symbol-with-no-alpha/numeric-chars»
   «(syntax-table):(2):«c:#\c»»
   «(syntax-table):(2):«c:#\space»»
   «(syntax-table):(2):«c:#\newline»»

   «m:;; »«x:Literal number examples
»
   «m:;; »«x:#b
»   «c:#b1.1»
   «c:#b-1.1»
   «c:#b1e1»
   «c:#b0/1»
   «c:#b1/1»
   «c:#b1e-1»
   «c:#b101»

   «m:;; »«x:#d
»   «c:#d-1.23»
   «c:#d1.123»
   «c:#d1e3»
   «c:#d1e-22»
   «c:#d1/2»
   «c:#d-1/2»
   «c:#d1»
   «c:#d-1»

   «m:;; »«x:No # reader prefix -- same as #d
»   «c:-1.23»
   «c:1.123»
   «c:1e3»
   «c:1e-22»
   «c:1/2»
   «c:-1/2»
   «c:1»
   «c:-1»

   «m:;; »«x:#e
»   «c:#e-1.23»
   «c:#e1.123»
   «c:#e1e3»
   «c:#e1e-22»
   «c:#e1»
   «c:#e-1»
   «c:#e1/2»
   «c:#e-1/2»

   «m:;; »«x:#i always float
»   «c:#i-1.23»
   «c:#i1.123»
   «c:#i1e3»
   «c:#i1e-22»
   «c:#i1/2»
   «c:#i-1/2»
   «c:#i1»
   «c:#i-1»

   «m:;; »«x:#o
»   «c:#o777.777»
   «c:#o-777.777»
   «c:#o777e777»
   «c:#o777e-777»
   «c:#o3/7»
   «c:#o-3/7»
   «c:#o777»
   «c:#o-777»

   «m:;; »«x:#x
»   «c:#x-f.f»
   «c:#xf.f»
   «c:#x-f»
   «c:#xf»

   «m:;; »«x:complex
»   «c:-1/10e1+10/1f10i»
   «c:#d-1/10e1+10/1f10i»
   «c:#e-1/10e1+10/1f10i»
   «c:#i-1/10e1+10/1f10i»
   «c:#x-1/10e1+10/1f10i»
   «c:#b-1/10e1+10/1f10i»
   «c:#o-1/10e1+10/1f10i»

   «c:+10.1f10-1.10e1i»
   «c:#d+10.1f10-1.10e1i»
   «c:#e+10.1f10-1.10e1i»
   «c:#i+10.1f10-1.10e1i»
   «c:#x+10.1f10-1.10e1i»
   «c:#b+10.1f10-1.10e1i»
   «c:#o+10.1f10-1.10e1i»

   «m:;; »«x:exact complex, e.g. issue #445
»   «c:1+2i»
   «c:1/2+3/4i»
   «c:1.0+3.0e7i»

   «m:;; »«x:negative exponent, e.g. issue #442
»   «c:2.0e1»
   «c:-2.0e2»
   «c:-1e-1»

   «m:;; »«x:extflonum
»   «c:10.1t10»
   «c:#d10.1t10»
   «c:#x10.1t10»
   «c:#b10.1t10»
   «c:#o10.1t10»
   ))

(«b:define/contract» («f:valid-bucket-name?» s «:racket-keyword-argument-face:#:keyword» [dns-compliant? «c:#t»])
  ((«b:string?») («:racket-keyword-argument-face:#:keyword» «b:boolean?») . «b:->*» . «b:boolean?»)
  («k:cond»
    [dns-compliant?
     («k:and» («b:<=» «c:3» («b:string-length» s)) («b:<=» («b:string-length» s) «c:63»)
          («b:not» («b:regexp-match» «(syntax-table):(6):«c:#px»»«s:"\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}"» s))
          («k:for/and» ([s («b:regexp-split» «(syntax-table):(6):«c:#rx»»«s:"\\."» s)])
            («k:define» («f:valid-first-or-last?» c)
              («k:or» («b:char-lower-case?» («b:string-ref» s «c:0»))
                  («b:char-numeric?» («b:string-ref» s «c:0»))))
            («k:define» («f:valid-mid?» c)
              («k:or» (valid-first-or-last? c)
                  («b:equal?» c «(syntax-table):(2):«c:#\-»»)))
            («k:define» «v:len» («b:string-length» s))
            («k:and» («b:<» «c:0» len)
                 (valid-first-or-last? («b:string-ref» s «c:0»))
                 (valid-first-or-last? («b:string-ref» s («b:sub1» len)))
                 («k:or» («b:<=» len «c:2»)
                     («k:for/and» ([c («b:substring» s «c:1» («b:sub1» len))])
                       (valid-mid? c))))))]
    [«k:else»
     («k:and» («b:<=» («b:string-length» s) «c:255»)
          («k:for/and» ([c s])
            («k:or» («b:char-numeric?» c)
                («b:char-lower-case?» c)
                («b:char-upper-case?» c)
                («b:equal?» c «(syntax-table):(2):«c:#\.»»)
                («b:equal?» c «(syntax-table):(2):«c:#\-»»)
                («b:equal?» c «(syntax-table):(2):«c:#\_»»))))]))

(«b:displayln» «s:"I'm running!"»)

«m:;; »«x:Issue 366
»«(syntax-table):(6):#»«s:"1"»
«(syntax-table):(6):#»«s:"22"»
«(syntax-table):(6):#»«s:"333"»

«m:;; »«x:Issue 448
»(fun «:racket-keyword-argument-face:#:1» «(syntax-table):(6):#»«s:"a"»)
(fun «:racket-keyword-argument-face:#:12» «(syntax-table):(6):#»«s:"a"»)
(fun «:racket-keyword-argument-face:#:123» «(syntax-table):(6):#»«s:"a"»)
(fun «:racket-keyword-argument-face:#:1234» «(syntax-table):(6):#»«s:"a"»)
(fun «:racket-keyword-argument-face:#:1» «(syntax-table):(6):«c:#px»»«s:"a"»)
(fun «:racket-keyword-argument-face:#:12» «(syntax-table):(6):«c:#px»»«s:"a"»)
(fun «:racket-keyword-argument-face:#:123» «(syntax-table):(6):«c:#px»»«s:"a"»)
(fun «:racket-keyword-argument-face:#:1234» «(syntax-table):(6):«c:#px»»«s:"a"»)

«m:;; »«x:Issue 463
»(«k:or» («b:equal?» c «(syntax-table):(2):«c:#\"»») («b:equal?» c «(syntax-table):(2):«c:#\'»»))
«(syntax-table):(2):«c:#\"»» «(syntax-table):(2):«c:#\"»»
«(syntax-table):(2):«c:#\"»» «m:;»«x:comment
»«(syntax-table):(2):«c:#\'»» «(syntax-table):(2):«c:#\'»»
«(syntax-table):(2):«c:#\'»» «m:;»«x:comment
»«(syntax-table):(2):«c:#\nul»» «(syntax-table):(2):«c:#\null»» «(syntax-table):(2):«c:#\backspace»» «(syntax-table):(2):«c:#\tab»» «(syntax-table):(2):«c:#\vtab»» «(syntax-table):(2):«c:#\newline»» «(syntax-table):(2):«c:#\linefeed»»
«(syntax-table):(2):«c:#\page»» «(syntax-table):(2):«c:#\return»» «(syntax-table):(2):«c:#\space»» «(syntax-table):(2):«c:#\rubout»»
«(syntax-table):(2):«c:#\012»»
«(syntax-table):(2):«c:#\uF»»
«(syntax-table):(2):«c:#\uFF»»
«(syntax-table):(2):«c:#\uFFF»»
«(syntax-table):(2):«c:#\uFFFF»»
«(syntax-table):(2):«c:#\Ufffff»»
«(syntax-table):(2):«c:#\Uffffff»»
«(syntax-table):(2):«c:#\a»» «(syntax-table):(2):«c:#\z»»
«(syntax-table):(2):«c:#\λ»»

«m:;; »«x:Issue 478
»(«x:#|blah blah blah|#» «k:begin»)

«m:;; »«x:Issue 534
»(«k:define» «v:foo‾bar» «c:42»)
(«k:let» ([«v:foo‾bar» «c:42»]) foo‾bar)

«m:;; »«x:Issue 546
»«:racket-reader-quoted-symbol-face:'C#» («b:add1» «c:1»)

«m:;; »«x:Examples of quoted expressions that should receive
»«m:;; »«x:font-lock-string-face, font-lock-constant-face,
»«m:;; »«x:racket-reader-quoted-symbol-face, or none of those.
»'«s:"string"»
'«(syntax-table):(6):«c:#px»»«s:"regexp"»
'«c:1234»
'«c:#x1234»
'«c:#t»
'«c:+NaN.0»
'«(syntax-table):(2):«c:#\A»»
«:racket-reader-quoted-symbol-face:'symbol»
«:racket-reader-quoted-symbol-face:`symbol»
«:racket-reader-quoted-symbol-face:'1symbol» «m:;»«x:legal Racket identifier
»«:racket-reader-quoted-symbol-face:`1symbol»
«:racket-reader-quoted-symbol-face:'+»
«:racket-reader-quoted-symbol-face:'Noon.0»
«(syntax-table):(2):«:racket-reader-quoted-symbol-face:'|foo bar|»»
«(syntax-table):(2):«:racket-reader-quoted-symbol-face:'|foo \|»»«:racket-reader-quoted-symbol-face: bar|»
'(«s:"string"» «c:1» symbol) «m:;»«x:symbol not directly quoted
»'(a b c)

«m:;; »«x:Examples of quoted expressions that should receive
»«m:;; »«x:font-lock-string-face, font-lock-constant-face,
»«m:;; »«x:racket-reader-syntax-quoted-symbol-face, or none of those.
»«(syntax-table):(6):#'»«s:"string"»
«(syntax-table):(6):#'«c:#px»»«s:"regexp"»
«(syntax-table):(6):#'»«c:1234»
«(syntax-table):(6):#'»«c:#x1234»
«(syntax-table):(6):#'»«c:#t»
«(syntax-table):(6):#'»«c:+NaN.0»
«(syntax-table):(6):#'»«(syntax-table):(2):«c:#\A»»
«(syntax-table):(6):«:racket-reader-syntax-quoted-symbol-face:#'»»«:racket-reader-syntax-quoted-symbol-face:symbol»
«(syntax-table):(6):«:racket-reader-syntax-quoted-symbol-face:#`»»«:racket-reader-syntax-quoted-symbol-face:symbol»
«(syntax-table):(6):«:racket-reader-syntax-quoted-symbol-face:#'»»«:racket-reader-syntax-quoted-symbol-face:1symbol» «m:;»«x:legal Racket identifier
»«(syntax-table):(6):«:racket-reader-syntax-quoted-symbol-face:#`»»«:racket-reader-syntax-quoted-symbol-face:1symbol»
«(syntax-table):(6):«:racket-reader-syntax-quoted-symbol-face:#'»»«:racket-reader-syntax-quoted-symbol-face:+»
«(syntax-table):(6):«:racket-reader-syntax-quoted-symbol-face:#'»»«:racket-reader-syntax-quoted-symbol-face:Noon.0»
«(syntax-table):(6):«:racket-reader-syntax-quoted-symbol-face:#'»»«:racket-reader-syntax-quoted-symbol-face:|foo bar|»
«(syntax-table):(6):«:racket-reader-syntax-quoted-symbol-face:#'»»«:racket-reader-syntax-quoted-symbol-face:|foo \«(syntax-table):(2):| bar|»»
«(syntax-table):(6):#'»(«s:"string"» «c:1» symbol) «m:;»«x:symbol not directly quoted
»«(syntax-table):(6):#'»(a b c)