This package provides syntax highlighting for the Myst programming language.
A primary goal of this syntax definition is to provide as much detail as possible for color schemes and plugins to utilize. This includes:
-
contextual
endscoping:endis a very common keyword in Myst. It is used to closedo...endblocks, when chains, loops, exception handlers, types, and modules. As such, it's common to see long chains ofends at the end of a file or large block of code, since everything is wrapping up, and it can be hard to figure out what exactly is being closed and where.Moreover, it can be hard to spot errors with closing code blocks leading to the infamous "Unexpected EOF..." in Ruby, for example.
In an attempt to mitigate these issues and improve clarity, this syntax definition provides those
ends with proper scopes based on what they are closing. For example, anendthat closes awhenchain will have the scopekeyword.conditional.end.myst, while anendthat closes an exception handler will have akeyword.control.exceptions.end.mystscope instead.
Since the syntax of Myst is not necessarily well-defined yet, this package has not been published to the main Package Control channel. To install the package, add the repository to Package Control (see the "Add Repository" section at https://packagecontrol.io/docs/usage) with the url https://github.com/myst-lang/sublime-myst.
Once the repository has been added, you should be able to install the package as normal through Package Control. It will be under the name sublime-myst.
