Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def generate_tm_coloring_json(gen_path, textx_ls, env):
- template = env.get_template('coloring_json.template')
- lang_name = textx_ls.configuration.language_name
- coloring_file_name = lang_name.lower() + '.tmLanguage.json'
- coloring = ColoringVSCode(textx_ls.configuration)
- with open(join(gen_path, 'syntaxes', coloring_file_name), 'w') as f:
- f.write(template.render(coloring.get_coloring_model()))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement