Commit Graph

33 Commits

Author SHA1 Message Date
Matthew Flatt
5afd1b4118 syntax-color/racket-lexer: update for single-precision and extflonums
Includes a doc fix to note `+inf.t', etc.
2013-03-29 07:23:49 -06:00
Matthew Flatt
1dcc7ca4dc syntax-color/racket-lexer: fix long-standing number-parsing bug
The lexer mishandled cases like "#x1E+2", because "E" is
not an exponent marker for hexadecimal --- and it has been that
way forever, but the repair isn't all that difficult.
2013-03-29 07:23:49 -06:00
Robby Findler
bc479b41c5 adjust scribble-lexer test to handle errors 2013-02-26 12:41:25 -06:00
Robby Findler
18c009276d fix up tests to reflect the module-lexer now behaves a little
better wrt to its first result

That is, instead of just returning the string "#lang" it now
returns the actual text that was there (it was supposed to be
doing that all along and my recent commit fixed it, but I
missed the test cases)
2013-02-23 15:42:43 -06:00
Robby Findler
dbb1d8f360 adjust scribble lexer so its failures print to stderr, not stdout 2013-02-16 19:55:18 -06:00
Robby Findler
995d4a4704 adjust test cases for recent changes to the lexers 2013-02-07 21:25:02 -06:00
Robby Findler
11994bd4f8 fix a bug in the module lexer; it was returning the wrong length for the tokens
it creates when the #lang line isn't well-formed (eg "#lang racke").

closes PR 12399
2011-11-28 21:16:31 -06:00
Robby Findler
65fd0234ad add a unicode test to scheme-lexer.rkt
and change the tests so they all run with port line
counting enabled (or else the unicode test fails)

adjust module-lexer.rkt tests so they can run in either
port-counting mode or not (but currently run them all in
port-counting mode because scheme-lexer doesn't work without it)

also make a first stab at what needs to change in the module
lexer to make it work in non port line-counting mode
2011-11-03 22:41:27 -05:00
Robby Findler
d00aed6f1b fix the module reader for the case when there are non-ASCII unicode characters
in comments before the #lang line

also add an #:init-position argument to peeking-input-port
2011-11-03 17:13:17 -05:00
Robby Findler
1eaf53d4cb adjust the module lexer so that it treats the entire range that
'read-language' uses as a single token in the case that read-language
fails. This helps it to deal with things like s-exp and at-exp
properly

closes PR 12260
2011-10-08 08:08:36 -05:00
Robby Findler
5829673215 adjust the scheme-lexer test suite so that it complains to stderr to fit
with drdr

also change two of the failing tests so they pass, but incorrectly and
add a note there to that effect so if someone does fix that eventually
they won't be confused (I hope)
2011-10-06 12:00:23 -05:00
Matthew Flatt
bf4fc2574c fix syntax colorer for #true and #false 2010-10-12 08:22:12 -06:00
Eli Barzilay
8e0f8dd39c More "~n" -> "\n" changes 2010-08-26 12:11:00 -04:00
Matthew Flatt
e504acb726 use .rktl suffix for files meant to be 'load'ed 2010-05-01 09:58:16 -06:00
Matthew Flatt
6a28bd0e4b fix some tests for drdr 2010-04-28 11:02:31 -06:00
Matthew Flatt
28b4043077 rename all files .ss -> .rkt 2010-04-27 16:50:15 -06:00
Matthew Flatt
d807421a07 extended syntax colorer to support lexer-specific backup; fix problems with new color lexers
svn: r15617
2009-07-29 03:31:29 +00:00
Matthew Flatt
84485e14ad try reporting complex Scribble braces as regular braces
svn: r15614
2009-07-28 22:20:25 +00:00
Matthew Flatt
c261379a29 better coloring and bug fixes for Scribble notation
svn: r15613
2009-07-28 22:06:16 +00:00
Matthew Flatt
c1f5e3abb4 changed Scribble coloring for better tabbing
svn: r15612
2009-07-28 21:11:51 +00:00
Matthew Flatt
1ba7cf0926 #lang syntax coloring; Scribble syntax coloring
svn: r15607
2009-07-28 18:06:14 +00:00
Robby Findler
0c73b84692 PR 10344
svn: r15545
2009-07-24 04:37:34 +00:00
Eli Barzilay
7d50e61c7f * Newlines at EOFs
* Another big chunk of v4-require-isms
* Allow `#lang framework/keybinding-lang' for keybinding files
* Move hierlist sources into "mrlib/hierlist", leave stub behind

svn: r10689
2008-07-09 07:18:06 +00:00
Scott Owens
5295dcb197 Clarified how the paren matching tree uses its internal data structures.
svn: r9720
2008-05-07 10:38:33 +00:00
Matthew Flatt
07bac63506 fix scheme-lexer tests
svn: r9688
2008-05-06 14:44:31 +00:00
Eli Barzilay
b1a08edd5a use new require specs in many places
svn: r8774
2008-02-23 09:42:03 +00:00
Scott Owens
d4f72cbeae Case sensitivity
svn: r7063
2007-08-08 22:11:54 +00:00
Scott Owens
b892227a26 Fix a test case that one of Matthew's changes to the lexer made obsolete.
svn: r7062
2007-08-08 22:11:42 +00:00
Matthew Flatt
a420febb1b undo accidental commit of commenting-out a test case
svn: r5979
2007-04-19 03:14:51 +00:00
Matthew Flatt
681d88ed52 improve DrScheme's auto-indenting and S-exp movement for Scheme code with quote, #;, etc.
svn: r5977
2007-04-19 02:44:31 +00:00
Scott Owens
73d12ea244 Support for #: keywords in the syntax colorer.
svn: r1314
2005-11-14 21:53:37 +00:00
Scott Owens
1aca39d9f6 Tests for the Scheme lexer used in syntax coloring
svn: r1308
2005-11-14 08:43:14 +00:00
Eli Barzilay
017d151d59 Adding collects, with all the right properties (except eoln-style).
svn: r3
2005-05-27 18:56:37 +00:00