Scheme language support (R7RS+/#F) for VS Code
Mostly follows R7RS syntax definitions, including the following:
- correct coloring of R7RS numerical constants, identifiers, strings, and characters
- support for
#;
comments - support for vectors, bytevectors, quoted and backquoted forms
Extensions:
- additional definition and syntax keywords from earlier standards and #F
- support for
#&
box syntax
(color theme is available as scheme-r7rs-light)
Initial release of the extension
Known colorizer problems (most probably cannot be easily fixed):
- colorizer gets confused by datum prefixes such as
` ' , ,@ #&
if the datum that follows is separated by newlines or comments - definition coloring can be easily fooled by newlines and/or comments in the first two sub-forms
#;
comments use relaxed grammar and may be colored incorrectly in some corner cases- coloring of backquoted expressions is not very robust; it fails if double-nested (e.g.
`(a `(b ,,c ',,d) e))
or if full forms like(unquote x)
are used. Reasonable forms from real code are colored reasonably well. - generally, grammar is relaxed in many places, so some syntax errors won't look like errors (e.g. cons dot can be misplaced).
Based on author's .tmLanguage extension published here: textmate-scheme-support
Flaming Lambda logo borrowed from the Wizard Book