We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for s-expression comments. For example:
#;(define (double x) (* 2 x))
Currently, the second line is highlighted as code. It should be highlighted as a comment.
The text was updated successfully, but these errors were encountered:
Something like the following seems to do it:
syn region racketData start=/(/ end=/)/ contained transparent contains=racketData syn region racketSExpressionComment matchgroup=racketSExpressionComment start=/#;(/ end=/)/ contains=racketData syn cluster racketNormal add=racketSExpressionComment syn cluster racketQuotedOrNormal add=racketSExpressionComment hi def link racketSExpressionComment Comment
Sorry, something went wrong.
@c42f Your proposed solution does not handle this case:
(/ 6 #;0 2)
The 2) part will be incorrectly highlighted as a comment.
2)
Refer to SRFI 62: S-expression comments for more examples.
A solution already exists in Vim's Scheme syntax file:
https://github.com/vim/vim/blob/v8.2.2663/runtime/syntax/scheme.vim#L70-L74
No branches or pull requests
Add support for s-expression comments. For example:
Currently, the second line is highlighted as code. It should be highlighted as a comment.
The text was updated successfully, but these errors were encountered: