https://github.com/unisonweb/unison-tmlanguage
A TextMate grammar for the Unison language.
https://github.com/unisonweb/unison-tmlanguage
Last synced: 11 months ago
JSON representation
A TextMate grammar for the Unison language.
- Host: GitHub
- URL: https://github.com/unisonweb/unison-tmlanguage
- Owner: unisonweb
- License: mit
- Created: 2019-08-27T14:29:10.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-04-20T16:17:08.000Z (about 6 years ago)
- Last Synced: 2025-03-05T17:50:25.150Z (over 1 year ago)
- Language: TypeScript
- Size: 53.7 KB
- Stars: 1
- Watchers: 6
- Forks: 1
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# unison-tmLanguage
A TextMate grammar for the Unison language.
## Grammars
This repository contains the following grammars:
| Grammar | Editor |
| :----------------------------------------------------------------: | :----------: |
| [grammars/unison.tmLanguage.json](grammars/unison.tmLanguage.json) | VS code |
| [grammars/unison.tmLanguage.cson](grammars/unison.tmLanguage.cson) | Atom |
| [grammars/unison.tmLanguage](grammars/unison.tmLanguage) | Sublime Text |
## Contributing
To incorporate new changes into the Unison grammar, you will need to look into the source grammar:
[src/unison.tmLanguage.yml](src/unison.tmLanguage.yml).
Once your modifications are in place, you can generate the derived grammars located in
[grammars/](grammars/) by running:
```bash
npm install
```
Once the derived grammars are generated, you can write tests for your modifications taking one of
the file in [test/](test/) as an example. You can then run the tests with:
```bash
npm test
```
## Credits
Tests and project scaffolding were heavily inspired by:
- [dotnet/csharp-tmLanguage](https://github.com/dotnet/csharp-tmLanguage)
- [PanAeon/vscode-tmgrammar-test](https://github.com/PanAeon/vscode-tmgrammar-test)