feat: var after global token variable
This commit is contained in:
@@ -108,6 +108,12 @@ class _Highlighter(Visitor):
|
|||||||
if name == "global":
|
if name == "global":
|
||||||
line, col = routine.contents_pos
|
line, col = routine.contents_pos
|
||||||
self._tokens.append((((line - 1, col - 1), len(name), "keyword", [])))
|
self._tokens.append((((line - 1, col - 1), len(name), "keyword", [])))
|
||||||
|
first_arg = command.args[0]
|
||||||
|
token_info = self._get_token_info(first_arg)
|
||||||
|
if token_info:
|
||||||
|
(line, col), length = token_info
|
||||||
|
mods = [TokenModifier.declaration, TokenModifier.write]
|
||||||
|
self._tokens.append(((line, col), length, "variable", mods))
|
||||||
|
|
||||||
if routine.contents == "puts":
|
if routine.contents == "puts":
|
||||||
line, col = routine.contents_pos
|
line, col = routine.contents_pos
|
||||||
|
|||||||
Reference in New Issue
Block a user