summary refs log tree commit diff stats
path: root/tinyc/arm-gen.c
diff options
context:
space:
mode:
authoralaviss <alaviss@users.noreply.github.com>2019-01-23 22:35:34 +0700
committerAndreas Rumpf <rumpf_a@web.de>2019-01-23 16:35:34 +0100
commit35d96d8749809863bbbb6ead1e8cf887a95a94e5 (patch)
tree922c9ddb1310ecb4f67006200c353505e9b17012 /tinyc/arm-gen.c
parentbad5ad6dc764e2b1505d27a61b949079040a5f3c (diff)
downloadNim-35d96d8749809863bbbb6ead1e8cf887a95a94e5.tar.gz
compiler/sem*: better lineinfo for templates (#10428)
* compiler/sem*: better lineinfo for templates

Lineinfo for templates is inconsistant across the compiler, for example:

    doAssert true
    ^        ^

    a[int](10)
    ^^    ^

The `^` marks where the compiler thinks the template starts.

For qualified call, we got the same situation with `proc`s before #10427:

    system.once
          ^

Generics lineinfo within template declaration is also incorrect, for
example, this is where the compiler believes the `T` in `[T]` is:

    template a[T](b: T)
                  ^

This PR addresses all of these problems.

* nimsuggest: add tests for template highlighting
Diffstat (limited to 'tinyc/arm-gen.c')
0 files changed, 0 insertions, 0 deletions
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218