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 | 3b23e66a4f754a935f308a5c41a2f08f2968d5c3 (patch) | |
tree | f688f9b036be84522f7e42877903e3dfc258c973 /test/examples/x.nim | |
parent | e0c07db56fc58abb484479f0fa2d84abfeee82e3 (diff) | |
download | scintilla-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')
-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\"""" |