Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Racket here-strings. Closes #176
Mainly borrow the approach used by sh-mode for here-docs. By giving these actual string syntax things like indentation work as desired (the same as for a double quoted multi-line string). A custom font-lock-syntactic-face-function handles nearly all of the font-lock, with pattern-based font-lock handling just the #<<ID portion. The trickiest part is making the syntax-propertize function recognize both the beginning and end of a here-string -- including recognizing the end of a here-string whose beginning was identified in a previous call to the syntax-propertize function (propertiziation happens in batches/windows, the boundary of which may intersect a her-string).
- Loading branch information
Greg Hendershott
committed
Nov 8, 2015
1 parent
d0e31e5
commit 1e8df7e
Showing
5 changed files
with
154 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters