| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
* Makefile.am: Use $GUILE_EFFECTIVE_VERSION to install modules to the
correct place.
|
| |
|
| |
|
|
|
|
|
| |
* syntax-highlight/parsers.scm: Delete.
* Makefile.am (SOURCES): Delete it.
|
| |
|
|
|
|
|
|
|
|
| |
This starts the transition away from the flawed parser combinators to
something really similar, but more capable.
* syntax-highlight/lexers.scm: New file.
* Makefile.am(SOURCES): Add it.
|
| |
|
|
|
|
|
| |
* syntax-highlight.scm (highlight): Add remainder of code to result as a
plain string if parsing fails.
|
|
|
|
|
|
|
| |
* syntax-highlight.scm (string->stream): Move it.
* syntax-highlight/parsers.scm (stream->string): Likewise.
* syntax-highlight/utils.scm: New file.
* Makefile.am (SOURCES): Add it.
|
|
|
|
|
|
|
| |
Try to parse close tags before open tags.
* syntax-highlight/xml.scm (xml-highlighter): Switch order of
'parse-close-tag' and 'parse-open-tag'.
|
| |
|
| |
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|