Hi,
I’m trying to do a dynamic syntax that applies a scope to a word that has been declared somewhere.
In the example below what I’m trying to do is: if a word is after “hi” once, then we apply the alex_scope scope to that word everywhere. To do so I’m trying with a regex look-behind in the variable.
%YAML 1.2
---
# See http://www.sublimetext.com/docs/3/syntax.html
scope: source.alex
variables:
namee: '(?<=hi )\w+'
contexts:
main:
- match: '{{namee}}'
scope: alex_scope
But it is not working, and the word “alexo” doesn’t get the scope 
hi alexo
The reason behind this is to combine this with custom completions. So if i declare var x as myClass then I can have completions on x with the properties of myClass.
Ideas?
Thanks a lot in advance!
Alexo
Super useful!