aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/examples/x.nim.styled
diff options
context:
space:
mode:
authorJad Altahan <xviyy@aol.com>2019-02-02 09:32:22 +1100
committerJad Altahan <xviyy@aol.com>2019-02-02 09:32:22 +1100
commit3b23e66a4f754a935f308a5c41a2f08f2968d5c3 (patch)
treef688f9b036be84522f7e42877903e3dfc258c973 /test/examples/x.nim.styled
parente0c07db56fc58abb484479f0fa2d84abfeee82e3 (diff)
downloadscintilla-mirror-3b23e66a4f754a935f308a5c41a2f08f2968d5c3.tar.gz
Backport: Feature [feature-requests:#1262]. Enhance raw string identifier styling in Nim
Adds property 'lexer.nim.raw.strings.highlight.ident'. Backport of changeset 7247:1eeda6575035.
Diffstat (limited to 'test/examples/x.nim.styled')
-rw-r--r--test/examples/x.nim.styled8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/examples/x.nim.styled b/test/examples/x.nim.styled
index 18ae529e6..2753d005e 100644
--- a/test/examples/x.nim.styled
+++ b/test/examples/x.nim.styled
@@ -10,3 +10,11 @@
{8}proc{0} {12}`$`{0} {15}({16}x{15}:{0} {16}myDataType{15}):{0} {16}string{0} {15}={0} {15}...{0}
{3}# Style ticks as SCE_NIM_BACKTICKS:
{8}if{0} {11}`==`{15}({0} {11}`+`{15}({5}3{15},{5}4{15}),{5}7{15}):{0} {16}echo{0} {6}"True"{0}
+
+{3}# Feature #1262
+# Standard raw string identifier:
+{8}let{0} {16}standardDoubleLitRawStr{0} {15}={0} {6}R"A raw string\"{0}
+{8}let{0} {16}standardTripleLitRawStr{0} {15}={0} {10}R"""A triple-double raw string\""""{0}
+{3}# Style of 'customIdent' is determined by lexer.nim.raw.strings.highlight.ident. 16 if false, 6 or 10 if true
+{8}let{0} {16}customDoubleLitRawStr{0} {15}={0} {16}customIdent{6}"A string\"{0}
+{8}let{0} {16}customTripleLitRawStr{0} {15}={0} {16}customIdent{10}"""A triple-double raw string\""""{0}