diff options
author | Jad Altahan <xviyy@aol.com> | 2019-02-02 09:32:22 +1100 |
---|---|---|
committer | Jad Altahan <xviyy@aol.com> | 2019-02-02 09:32:22 +1100 |
commit | 3272cf2d93f0beb2eed50f85fe115fa101f4de08 (patch) | |
tree | 38e76be002f006d5006d48489094c896b4955c0e /test/examples/x.nim | |
parent | 08ad67499ef0a3c36b2197a9f5d0381398931dd1 (diff) | |
download | scintilla-mirror-3272cf2d93f0beb2eed50f85fe115fa101f4de08.tar.gz |
Feature [feature-requests:#1262]. Enhance raw string identifier styling in Nim
Adds property 'lexer.nim.raw.strings.highlight.ident'.
Diffstat (limited to 'test/examples/x.nim')
-rw-r--r-- | test/examples/x.nim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/examples/x.nim b/test/examples/x.nim index 4bf0de737..ac8a274f4 100644 --- a/test/examples/x.nim +++ b/test/examples/x.nim @@ -10,3 +10,11 @@ stdin.readLine.split.map(parseInt).max.`$`.echo(" is the maximum!") proc `$` (x: myDataType): string = ... # Style ticks as SCE_NIM_BACKTICKS: if `==`( `+`(3,4),7): echo "True" + +# Feature #1262 +# Standard raw string identifier: +let standardDoubleLitRawStr = R"A raw string\" +let standardTripleLitRawStr = R"""A triple-double raw string\"""" +# Style of 'customIdent' is determined by lexer.nim.raw.strings.highlight.ident. 16 if false, 6 or 10 if true +let customDoubleLitRawStr = customIdent"A string\" +let customTripleLitRawStr = customIdent"""A triple-double raw string\"""" |