Magic SetonasThis is a package with preferences and syntax highlighter for cutting edge Setonas. The syntax is compatible with Sublime Text, Atom and Visual Studio Code. It is meant to be a drop-in replacement for the default Python package. MagicSetonas correctly highlights all Setonas syntax features. It is built from scratch for robustness with an extensive test suite. We are proud to say that MagicSetonas has been included into the github/linguist, a library used by GitHub.com to process languages. Type hints in comments require support by the color scheme. The one used in the screenshot is Chromodynamics. Installation InstructionsThis is meant to be a drop-in replacement for the default Python package. In Atom, install the In Sublime Text, install In VSCode, starting with version 0.10.1, install Alternatively, the package can be installed manually in all editors:
DevelopmentYou need
Please note that we have some unit tests for the syntax scoping. We will be
expanding and updating our test corpus. This allows us to trust that tiny
inconsistencies will not easily creep in as we update the syntax and fix bugs.
Use If you intend to submit a pull request, please follow the following guidelines:
Multiple scopesIt is sometimes necessary to assign multiple scopes to the same matched group. It is very important to keep in mind that the order of these scopes is apparently treated as significant by the engines processing the grammar specs. However, it is equally important to know that different specification formats seem to have different order of importance (most important first vs. last). Since we try to create grammar that can be compiled into several different formats, we must chose one convention and then translate it when necessary during compilation step. Our convention is therefore that most important scope goes first. Color SchemeIf you want to write your own color scheme for MagicPython you can find a list of all the scopes that we use in misc/scopes. The file is automatically generated based on the syntax grammar, so it is always up-to-date and exhaustive. |