1# Tests for Nim 2let s = "foobar" 3 4# Feature #1260 5{.ident.} 6stdin.readLine.split.map(parseInt).max.`$`.echo(" is the maximum!") 7 8# Feature #1261 9# IsFuncName("proc") so style ticks as SCE_NIM_FUNCNAME: 10proc `$` (x: myDataType): string = ... 11# Style ticks as SCE_NIM_BACKTICKS: 12if `==`( `+`(3,4),7): echo "True" 13 14# Feature #1262 15# Standard raw string identifier: 16let standardDoubleLitRawStr = R"A raw string\" 17let standardTripleLitRawStr = R"""A triple-double raw string\"""" 18# Style of 'customIdent' is determined by lexer.nim.raw.strings.highlight.ident. 16 if false, 6 or 10 if true 19let customDoubleLitRawStr = customIdent"A string\" 20let customTripleLitRawStr = customIdent"""A triple-double raw string\"""" 21 22# Feature #1268 2310_000 2410__000 2510_ 261....5 271.ident 281._ident 29