summary refs log tree commit diff stats
path: root/compiler/pretty.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-08-31 02:46:13 +0200
committerAraq <rumpf_a@web.de>2014-08-31 02:46:13 +0200
commit8925d0e10335c8ae7671b7fb19f25a6f0a1802d3 (patch)
tree7baeefdabf7c3bdcceaa572a4127b6cdd8fc538f /compiler/pretty.nim
parent31db3aeadefb73831b4fa27b1a1118acd5aa6134 (diff)
downloadNim-8925d0e10335c8ae7671b7fb19f25a6f0a1802d3.tar.gz
minor improvement for nim pretty
Diffstat (limited to 'compiler/pretty.nim')
-rw-r--r--compiler/pretty.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/pretty.nim b/compiler/pretty.nim
index 356399c1c..321c19502 100644
--- a/compiler/pretty.nim
+++ b/compiler/pretty.nim
@@ -90,10 +90,10 @@ proc beautifyName(s: string, k: TSymKind): string =
       result.add s[i]
     inc i
 
-proc checkStyle*(info: TLineInfo, s: string, k: TSymKind) =
+proc checkStyle(info: TLineInfo, s: string, k: TSymKind) =
   let beau = beautifyName(s, k)
   if s != beau:
-    message(info, errGenerated, "name should be: " & beau)
+    message(info, hintName, beau)
 
 proc checkDef*(n: PNode; s: PSym) =
   # operators stay as they are:
umpf <rumpf_a@web.de> 2018-04-25 10:52:32 +0200 Fixes #802, #803 and #3775 - genscript issues (#7677)' href='/ahoang/Nim/commit/tests/testament/backend.nim?h=devel&id=e931f3b5a9643e0d7ac45b88b0bddb32dda4c540'>e931f3b5a ^
20b5f31c0 ^



a5f1abc5c ^
20b5f31c0 ^
a5f1abc5c ^
a22bf14bb ^
20b5f31c0 ^
a22bf14bb ^

20b5f31c0 ^


a5f1abc5c ^
20b5f31c0 ^
a5f1abc5c ^
fc452787e ^
a22bf14bb ^

a5f1abc5c ^

e80465dac ^
a5f1abc5c ^



20b5f31c0 ^
a22bf14bb ^
a5f1abc5c ^










a22bf14bb ^
a5f1abc5c ^




20b5f31c0 ^

a5f1abc5c ^

20b5f31c0 ^
a5f1abc5c ^
fa02ffaeb ^


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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71