highlight: do not add html classes to unresolved local variables
authorJean Privat <jean@pryen.org>
Tue, 3 Jun 2014 13:47:59 +0000 (09:47 -0400)
committerJean Privat <jean@pryen.org>
Tue, 3 Jun 2014 13:47:59 +0000 (09:47 -0400)
commitb3de2db6f826de1e6c33ea6338139efd5113b505
treeadc5ed2424b449732f338693b125c3d57a4b5186
parentaf851410d60e57e091f0e7242437e20b7e01b3ab
highlight: do not add html classes to unresolved local variables

Eg. this avoid highlighting to only highlight the fist occurrence of `x`
in the following AST if no semantic analysis is run

~~~
var x = 5
print x
~~~

Now, either none, or both `x` are identified as variables according to how
mush semantic analysis is performed.

Signed-off-by: Jean Privat <jean@pryen.org>
src/highlight.nit