Skip to content

Instantly share code, notes, and snippets.

@rgchris
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rgchris/107baeb3becb8974110e to your computer and use it in GitHub Desktop.
Save rgchris/107baeb3becb8974110e to your computer and use it in GitHub Desktop.
Spaces in Rebol Strings (and other tests of Rebol highlighting)
Rebol [
Title: "Syntax Highlighting of Spaces in Strings"
Date: 29-Mar-2015
Author: "Christopher Ross-Gill"
]
Samples: [ ; a comment
string-with-spaces {
I am spaced.
}
string-with-tabs {
I am tabbed.
}
binary-with-spaces #{
DECAFBAD
}
binary-with-tabs #{
DECAFBAD
}
numbers [
123 123.456 123% 123.456% 1'2'3 1'2'3.4'5'6 1.2E4
]
strings [
"A String" <a href="tag"> http://url an@email %"a file" %another-file
]
words [
Rebol word :get set: 'lit /refine #issue true false none skip
]
strings-with-percent [
"A string with %20 percent encoding."
"A string giving 100%"
{What is the % of bad characters in this string?}
]
comment-tags [
<!-- a comment -->
<!--
a comment
-->
]
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment