From 3272cf2d93f0beb2eed50f85fe115fa101f4de08 Mon Sep 17 00:00:00 2001 From: Jad Altahan Date: Sat, 2 Feb 2019 09:32:22 +1100 Subject: Feature [feature-requests:#1262]. Enhance raw string identifier styling in Nim Adds property 'lexer.nim.raw.strings.highlight.ident'. --- test/examples/x.nim | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/examples/x.nim') 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\"""" -- cgit v1.2.3