diff --git a/collects/tests/syntax-color/module-lexer.rkt b/collects/tests/syntax-color/module-lexer.rkt index ff92b34ab9..d9188ca13e 100644 --- a/collects/tests/syntax-color/module-lexer.rkt +++ b/collects/tests/syntax-color/module-lexer.rkt @@ -37,12 +37,12 @@ (check-equal? (lex "#lang racket/base" #t) `(("#lang" other 1 18 #f) - (,eof eof #f #f (proc scheme-lexer)))) + (,eof eof #f #f (proc racket-lexer)))) (check-equal? (lex "#lang racket/base\n1" #t) `(("#lang" other 1 18 #f) - ("\n" white-space 18 19 (proc scheme-lexer)) - ("1" constant 19 20 (proc scheme-lexer)) - (,eof eof #f #f (proc scheme-lexer)))) + ("\n" white-space 18 19 (proc racket-lexer)) + ("1" constant 19 20 (proc racket-lexer)) + (,eof eof #f #f (proc racket-lexer)))) (check-equal? (lex ";; αα\n" #t) `(("; αα" comment 1 6 #f) ("\n" white-space 6 7 before-lang-line) @@ -57,7 +57,7 @@ `(("; a" comment 1 5 #f) ("\n" white-space 5 6 before-lang-line) ("#lang" other 6 23 before-lang-line) - (,eof eof #f #f (proc scheme-lexer)))) + (,eof eof #f #f (proc racket-lexer)))) (check-equal? (lex "#lang at-exp racket/base" #t) `(("#lang" other 1 25 #f) (,eof eof 25 25 ((proc scribble-lexer) . #f)))) diff --git a/collects/tests/syntax-color/scheme-lexer.rkt b/collects/tests/syntax-color/scheme-lexer.rkt index 695bfd6883..ce7805c523 100644 --- a/collects/tests/syntax-color/scheme-lexer.rkt +++ b/collects/tests/syntax-color/scheme-lexer.rkt @@ -22,6 +22,7 @@ ((other) #\o) ((no-color) #\n) ((error) #\x) + ((hash-colon-keyword) #\h) (else (error 'char "Given ~a" kind)))) @@ -489,85 +490,85 @@ end-string (test "#x1d+2" "cccccc") ;; should be "xxxxxx" ;; Keywords -(test "#:" "pp") -(test "#:a#:a" "pppppp") -(test "#:a #:a" "ppp ppp") -(test "#:a\t#:a" "ppp ppp") -(test "#:a\n#:a" "ppp ppp") -(test "#:a\"#:a" "pppxxxx") -(test "#:a,#:a" "pppoppp") -(test "#:a'#:a" "pppcppp" 3) -(test "#:a`#:a" "pppcppp" 3) -(test "#:a;#:a" "ppp;;;;") -(test "#:a(#:a" "ppppppp" 3) -(test "#:a)#:a" "ppppppp" 3) -(test "#:a[#:a" "ppppppp" 3) -(test "#:a]#:a" "ppppppp" 3) -(test "#:a{#:a" "ppppppp" 3) -(test "#:a}#:a" "ppppppp" 3) -(test "#:a##:a" "ppppppp") -(test "#:a.#:a" "ppppppp") -(test "#:a@#:a" "ppppppp") -(test "#:a/#:a" "ppppppp") -(test "#:a\"#:a\"#:a" "pppsssssppp") -(test "#:a1#:a" "ppppppp") -(test "#:a%#:a" "ppppppp") +(test "#:" "hh") +(test "#:a#:a" "hhhhhh") +(test "#:a #:a" "hhh hhh") +(test "#:a\t#:a" "hhh hhh") +(test "#:a\n#:a" "hhh hhh") +(test "#:a\"#:a" "hhhxxxx") +(test "#:a,#:a" "hhhohhh") +(test "#:a'#:a" "hhhchhh" 3) +(test "#:a`#:a" "hhhchhh" 3) +(test "#:a;#:a" "hhh;;;;") +(test "#:a(#:a" "hhhphhh" 3) +(test "#:a)#:a" "hhhphhh" 3) +(test "#:a[#:a" "hhhphhh" 3) +(test "#:a]#:a" "hhhphhh" 3) +(test "#:a{#:a" "hhhphhh" 3) +(test "#:a}#:a" "hhhphhh" 3) +(test "#:a##:a" "hhhhhhh") +(test "#:a.#:a" "hhhhhhh") +(test "#:a@#:a" "hhhhhhh") +(test "#:a/#:a" "hhhhhhh") +(test "#:a\"#:a\"#:a" "hhhssssshhh") +(test "#:a1#:a" "hhhhhhh") +(test "#:a%#:a" "hhhhhhh") -(test "#:1a" "pppp") -(test "#:\\8" "pppp") -(test "#:\\a" "pppp") -(test "#:\\\\" "pppp") -(test "#:a\\ a" "pppppp") -(test "#:a\\\ta" "pppppp") -(test "#:a\\\na" "pppppp") -(test "#:a\\\"a" "pppppp") -(test "#:a\\,a" "pppppp") -(test "#:a\\'a" "pppppp") -(test "#:a\\`a" "pppppp") -(test "#:a\\;a" "pppppp") -(test "#:a\\(a" "pppppp") -(test "#:a\\)a" "pppppp") -(test "#:a\\[a" "pppppp") -(test "#:a\\]a" "pppppp") -(test "#:a\\{a" "pppppp") -(test "#:a\\}a" "pppppp") -(test "#:\\|" "pppp") -(test "#:a\\|a" "pppppp") +(test "#:1a" "hhhh") +(test "#:\\8" "hhhh") +(test "#:\\a" "hhhh") +(test "#:\\\\" "hhhh") +(test "#:a\\ a" "hhhhhh") +(test "#:a\\\ta" "hhhhhh") +(test "#:a\\\na" "hhhhhh") +(test "#:a\\\"a" "hhhhhh") +(test "#:a\\,a" "hhhhhh") +(test "#:a\\'a" "hhhhhh") +(test "#:a\\`a" "hhhhhh") +(test "#:a\\;a" "hhhhhh") +(test "#:a\\(a" "hhhhhh") +(test "#:a\\)a" "hhhhhh") +(test "#:a\\[a" "hhhhhh") +(test "#:a\\]a" "hhhhhh") +(test "#:a\\{a" "hhhhhh") +(test "#:a\\}a" "hhhhhh") +(test "#:\\|" "hhhh") +(test "#:a\\|a" "hhhhhh") (test #<