Skip to content

Commit 052def1

Browse files
committed
More guideline on modifying grammar
1 parent 3489d85 commit 052def1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,14 @@ This repo happens to also contain a language-server usable by other editors. If
3838

3939
### Change the Grammar
4040

41+
The _real_ source of truth for our grammar is at https://github.com/rescript-lang/rescript-sublime. We port that `sublime-syntax` grammar over to this weaker TextMate language grammar for VSCode and the rest. There are some subtle differences between the 2 grammars; currently we manually sync between them.
42+
4143
- Modify `grammars/rescript.tmLanguage.json`.
4244

4345
For more grammar inspirations, check:
4446
- [TypeScript's grammar](https://github.com/microsoft/TypeScript-TmLanguage/blob/a771bc4e79deeae81a01d988a273e300290d0072/TypeScript.YAML-tmLanguage)
4547
- [Writing a TextMate Grammar: Some Lessons Learned](https://www.apeth.com/nonblog/stories/textmatebundle.html)
48+
4649
## Editor Diagnostics
4750

4851
They should be synced in from `lib/bs/.compiler.log` build. Don't take them from other places.

0 commit comments

Comments
 (0)