11 lines
366 B
Python
11 lines
366 B
Python
|
def main(buffer, command):
|
||
|
# hard-coded for consistency across multiple people's configs
|
||
|
config_delimiter = "\t"
|
||
|
for i in range(len(buffer.content_list())):
|
||
|
line = buffer.content_list()[i].split(config_delimiter)
|
||
|
if len(line) != 2:
|
||
|
print("%s: %d: Bad column quantity" % (command[0], i+buffer.index))
|
||
|
else:
|
||
|
buffer.env[line[0]] = line[1]
|
||
|
return buffer
|