Skip to content
Snippets Groups Projects
Commit 8ed9697a authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

Removed duplicates keywords

Can be found with the following python snippet

import re
plumedDictionary={}
with open("/opt/local/lib/plumed/vim/syntax/plumed.vim") as fin:
    for line in fin:
        if re.match("^let b:plumedDictionary\[.*$",line):
            line=re.sub("^let b:","",line)
            exec(line,{'__builtins__': None},{'plumedDictionary':plumedDictionary})
for key in plumedDictionary.keys():
    diction={}
    for opt in plumedDictionary[key]:
        if(opt['word'] in diction):
            print(key,opt['word'])
        diction[opt['word']]=1
parent 113b3b72
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment