language-legesher-PROGRAMMINGLANGUAGE
package.json
: within this file, the tree-sitter grammar that Atom pulls from to parse the programming language correctly, will have to be changed to Legesher's tree-sitter counterpart.package-lock.json
file as well as the /node_modules
folder for a clean rebuild. Running npm install
after such changes will create updated versions of those files.grammars/*
: within the grammars folder there will be several files.tree-sitter-PROGRAMMINGLANGUAGE.cson
: This file is the necessary file in order to create the language support in Atom. Update the file name to follow the naming convention for Legesher projects: tree-sitter-legesher-PROGRAMMINGLANGUAGE.cson
. We will have to first set up templating within the language here.python.cson
: This will need to have more changes made. I've found the best way to start is to search for the keyword
, storage
, logical
, '\\b(
and template the text in the match.settings/
: In the settings folder there should be at least one cson file that you will have to rename following the Legesher naming conventions: language-legesher-PROGRAMMINGLANGUAGE.cson
.language-legesher-PROGRAMMINGLANGUAGE.cson
: This should be a pretty simple template for us to go through. This is an example from the python language.snippets/
: The snippets folder can contain any number of files, but it is essentially the shortcuts for the language itself when it's being worked on within the editor. This will become more of a priority as Legesher evolves, but in the meantime, we'll keep it as it is. This more depends on the language's translation being accurate for more than just the keywords.spec/
: TESTS TESTS TESTS, we all love testing and making sure everything is working correctly. Go through each of these files and make sure the proper things are templated out. Make sure to also go through the fixtures/
folder for more tests to template out.apm test
to run the language tests in Atom.