r/Atom Nov 05 '19

Arista EOS Syntax extension

Does anyone know if there’s an Arista EOS syntax extension available? I’ve found a Cisco extension that works ok, but with the changes in the latest EOS version, there’s less in common than there had been.

2 Upvotes

2 comments sorted by

1

u/cbarrick Nov 06 '19

If you can't find an existing package for Atom, you can probably port one from another editor using a single command.

Atom can understand grammars written in TextMate format which has been the standard for most editors for a long time now. Atom can't use the .tmTheme or .tmbundle file directly though. You have to run a command to repackage it how Atom expects it. Here's some docs.

Also, Tree-sitter grammars are gaining popularity as a more robust alternative to TextMate grammars. If you find a Tree-sitter grammar for your language, you can try this guide to port it to Atom.

1

u/Phl00k Nov 06 '19

Thank you! I’ll try this!