| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
| |
* syntax-highlight/xml.scm: New file
* Makefile.am (SOURCES): Add it.
* README ("Supported Languages"): Add "XML."
|
|
|
|
|
|
|
|
|
|
| |
'parse-either' and 'parse-both' shadowed the 'stream' variable, causing
failure cases to sometimes return the wrong stream. That is, a stream
that has consumed input characters, not the original stream.
* syntax-highlight/parsers.scm (parse-either, parse-both): Use
'remainder' variable for leftover stream variables rather than
shadowing 'stream'.
|
|
|
|
| |
* syntax-highlight/parsers.scm (parse-maybe): New procedure.
|
|
|
|
|
|
|
|
|
|
| |
This was a thinko. It's redundant with 'parse-fail'.
* syntax-highlight/parsers.scm (parse-never): Delete.
(parse-fail): Rewrite docstring.
(parse-any, parse-each): Use 'parse-fail'.
* syntax-highlight/scheme.scm (parse-specials, parse-openers,
parse-closers): Likewise.
|
| |
|
|
|
|
|
|
|
|
|
| |
The 'make-scheme-highlighter' procedure lets the user override what the
set of special symbols and regexps are, useful for adding/removing
context-specific symbols.
* syntax-highlight/scheme.scm (make-scheme-highlighter): New procedure.
(scheme-highlighter): Define in terms of 'make-scheme-highlighter'.
|
|
|
|
|
|
| |
* syntax-highlight/scheme.scm (parse-symbol-chars,
parse-specials/regexp): New procedures.
(parse-keyword): Use 'parse-symbol-chars'.
|
|
|
|
| |
* syntax-highlight/parsers.scm (parse-regexp): New procedure.
|
|
|
|
| |
* syntax-highlight/parsers.scm (parse-filter): New procedure.
|
|
|
|
| |
* syntax-highlight/parsers.scm (tagged-parser): Fix typo in docstring.
|
|
|
|
| |
* syntax-highlight/scheme.scm: Remove commented code.
|
|
|
|
|
|
|
|
| |
The 'until' string needs to be reversed before stringification, since
the rest of the character list is in reverse order.
* syntax-highlight/parsers.scm (parse-delimited): Reverse 'until' string
when stringifying.
|
| |
|
|
|