summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* parsers: Remove parse-never.David Thompson2015-10-192-10/+5
| | | | | | | | | | 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.
* README: Add "Implementation details" section.David Thompson2015-10-191-0/+39
|
* scheme: Allow for custom special symbols.David Thompson2015-10-181-4/+14
| | | | | | | | | 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'.
* scheme: Tag symbols beginning with "define" as special.David Thompson2015-10-181-4/+33
| | | | | | * syntax-highlight/scheme.scm (parse-symbol-chars, parse-specials/regexp): New procedures. (parse-keyword): Use 'parse-symbol-chars'.
* parsers: Add parse-regexp.David Thompson2015-10-181-0/+10
| | | | * syntax-highlight/parsers.scm (parse-regexp): New procedure.
* parsers: Add parse-filter.David Thompson2015-10-181-0/+10
| | | | * syntax-highlight/parsers.scm (parse-filter): New procedure.
* parsers: Fix typo in docstring.David Thompson2015-10-181-1/+1
| | | | * syntax-highlight/parsers.scm (tagged-parser): Fix typo in docstring.
* scheme: Remove commented code.David Thompson2015-10-181-7/+0
| | | | * syntax-highlight/scheme.scm: Remove commented code.
* parsers: Fix parse-delimited.David Thompson2015-10-181-1/+2
| | | | | | | | 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.
* README: Mention that only Scheme is supported right now.David Thompson2015-10-181-0/+4
|
* First commit!David Thompson2015-10-1711-0/+763