this should work for most shader (I hope).
This code assume that uniform name is always in the second place of the line,
and that the shader is written without double space.
I hope there's something simpler as i think that this feature is quite useful for shader
newbies like me.
var f = File.new()
var index = 1
while not f.eof_reached(): # iterate through all lines until the end of file is reached
var line = f.get_line()
line += " "
#print(line + str(index))
if "uniform" in line:
l = line.split(" ")
print(l) # assume that the shadere is written
# like this: uniform space vartype space varname
index += 1