nim-lang / NimLime

The official Nim programming language plugin for Sublime Text
MIT License
132 stars 34 forks source link

syntax highlight messed up after `asm` #104

Closed timotheecour closed 5 years ago

timotheecour commented 6 years ago

reduced from /Users/timothee/git_clone/nim/Nim/lib/pure/hashes.nim

proc hashData() =
  when false:
    asm """`baz`;"""

proc hash(): Hash =
  when false:
    asm """
    """
  else:
    result = 0

proc foo() = discard

image

onionhammer commented 6 years ago

Strange, it works fine in your code snippet here (which is powered by NimLime)

Varriount commented 5 years ago

Works for the current development build (and probably master too).

timotheecour commented 5 years ago
Varriount commented 5 years ago

image

timotheecour commented 5 years ago

sigh... I have no idea why it wouldn't work for me... are you on OSX as well? I'm on dev build 3180 and pretty sure I had same issue with latest stable build

timotheecour commented 5 years ago

duplicate of https://github.com/Varriount/NimLime/issues/104 ; i found the root cause, will discuss in 104