better scheme highlighter for char,string,comment

This commit is contained in:
aecepoglu 2020-01-09 17:07:23 +03:00 committed by GitHub
parent fe80502bfa
commit 8b00458330
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,14 +38,15 @@ require-module lisp
add-highlighter shared/scheme regions add-highlighter shared/scheme regions
add-highlighter shared/scheme/code default-region group add-highlighter shared/scheme/code default-region group
add-highlighter shared/scheme/string region '"' (?<!\\)(\\\\)*" fill string add-highlighter shared/scheme/string region %{(?<!#\\)"} (?<!\\)(\\\\)*" fill string
add-highlighter shared/scheme/comment region ';' '$' fill comment add-highlighter shared/scheme/comment region %{(?<!#\\);} '$' fill comment
add-highlighter shared/scheme/comment-form region -recurse "\(" "#;\(" "\)" fill comment add-highlighter shared/scheme/comment-form region -recurse "\(" "#;\(" "\)" fill comment
add-highlighter shared/scheme/comment-block region "#\|" "\|#" fill comment add-highlighter shared/scheme/comment-block region "#\|" "\|#" fill comment
add-highlighter shared/scheme/quoted-form region -recurse "\(" "'\(" "\)" fill variable add-highlighter shared/scheme/quoted-form region -recurse "\(" "'\(" "\)" fill variable
add-highlighter shared/scheme/code/ regex (#t|#f) 0:value add-highlighter shared/scheme/code/ regex (#t|#f) 0:value
add-highlighter shared/scheme/code/ regex \b[0-9]+\.[0-9]*\b 0:value add-highlighter shared/scheme/code/ regex \b[0-9]+\.[0-9]*\b 0:value
add-highlighter shared/scheme/code/ regex (#\\((\w+)|(.))) 0:value
evaluate-commands %sh{ exec awk -f - <<'EOF' evaluate-commands %sh{ exec awk -f - <<'EOF'
BEGIN { BEGIN {