File: x.nim.folded

package info (click to toggle)
codequery 1.0.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 17,860 kB
  • sloc: cpp: 151,420; xml: 16,576; python: 5,602; ansic: 5,487; makefile: 559; perl: 496; ruby: 209; sql: 194; sh: 106; php: 53; vhdl: 51; erlang: 47; objc: 22; lisp: 18; cobol: 18; modula3: 17; asm: 14; fortran: 12; ml: 11; tcl: 6
file content (29 lines) | stat: -rw-r--r-- 1,147 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
 1   0   0   # Tests for Nim
 0 400   0   let s = "foobar"
 1 400   0   
 1 400   0   # Feature #1260
 0 400   0   {.ident.}
 0 400   0   stdin.readLine.split.map(parseInt).max.`$`.echo(" is the maximum!")
 1 400   0   
 1 400   0   # Feature #1261
 1 400   0   # IsFuncName("proc") so style ticks as SCE_NIM_FUNCNAME:
 0 400   0   proc `$` (x: myDataType): string = ...
 1 400   0   # Style ticks as SCE_NIM_BACKTICKS:
 0 400   0   if `==`( `+`(3,4),7): echo "True"
 1 400   0   
 1 400   0   # Feature #1262
 1 400   0   # Standard raw string identifier:
 0 400   0   let standardDoubleLitRawStr = R"A raw string\"
 0 400   0   let standardTripleLitRawStr = R"""A triple-double raw string\""""
 1 400   0   # Style of 'customIdent' is determined by lexer.nim.raw.strings.highlight.ident. 16 if false, 6 or 10 if true
 0 400   0   let customDoubleLitRawStr = customIdent"A string\"
 0 400   0   let customTripleLitRawStr = customIdent"""A triple-double raw string\""""
 1 400   0   
 1 400   0   # Feature #1268
 0 400   0   10_000
 0 400   0   10__000
 0 400   0   10_
 0 400   0   1....5
 0 400   0   1.ident
 0 400   0   1._ident
 1 400   0