https://github.com/leanprover/lean.tmbundle
A TextMate bundle for the Lean language
https://github.com/leanprover/lean.tmbundle
Last synced: 7 months ago
JSON representation
A TextMate bundle for the Lean language
- Host: GitHub
- URL: https://github.com/leanprover/lean.tmbundle
- Owner: leanprover
- License: apache-2.0
- Created: 2015-02-13T02:19:53.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2020-01-12T18:25:39.000Z (over 6 years ago)
- Last Synced: 2024-12-25T17:11:09.417Z (over 1 year ago)
- Size: 13.7 KB
- Stars: 2
- Watchers: 5
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Lean.tmbundle
A [TextMate](http://macromates.com) bundle for the [Lean](https://leanprover.github.io) language.
This is also used by [github/linguist](https://github.com/github/linguist) to syntax-highlight Lean code in [github.com](http://github.com). Everytime [github/linguist](https://github.com/github/linguist) is newly released, github pulls the latest version of this repository.
## How to Install
After installing [TextMate2](http://macromates.com/download), please execute the following instructions:
```bash
mkdir -p ~/Library/Application\ Support/Avian/Bundles
cd ~/Library/Application\ Support/Avian/Bundles
git clone https://github.com/leanprover/Lean.tmbundle.git
```
## How to Edit
- Open TextMate
- Bundles >> Edit Bundles

- Lean >> Language Grammars

- Note: TextMate saves grammar files (`.tmLanguage`) in Apple's PLIST format, which makes it very difficult to edit them outside of TextMate. It rejects to save any mal-formed/incomplete files. While saving grammar files, TextMate also clean up any comments inside of them.
## Resources
- TextMate's documentation on language grammars: http://manual.macromates.com/en/language_grammars
- Test grammars using Lightshow: https://github-lightshow.herokuapp.com
- Example: [library/algebra/binary.lean](https://github-lightshow.herokuapp.com/?utf8=%E2%9C%93&scope=from-url&grammar_url=https%3A%2F%2Fraw.githubusercontent.com%2Fleanprover%2FLean.tmbundle%2Fmaster%2FSyntaxes%2FLean.tmLanguage&grammar_text=&code_source=from-url&code_url=https%3A%2F%2Fraw.githubusercontent.com%2Fleanprover%2Flean%2Fmaster%2Flibrary%2Falgebra%2Fbinary.lean&code=)