-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add fixes to parse aliases and externals with Ruby.
Add grammar of TypeScript.
- Loading branch information
Showing
8 changed files
with
736 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# See https://github.com/OCamlPro/ocp-indent/blob/master/.ocp-indent for more | ||
|
||
# Indent for clauses inside a pattern-match (after the arrow): | ||
# match foo with | ||
# | _ -> | ||
# ^^^^bar | ||
# the default is 2, which aligns the pattern and the expression | ||
match_clause = 4 | ||
|
||
# When nesting expressions on the same line, their indentation are in | ||
# some cases stacked, so that it remains correct if you close them one | ||
# at a line. This may lead to large indents in complex code though, so | ||
# this parameter can be used to set a maximum value. Note that it only | ||
# affects indentation after function arrows and opening parens at end | ||
# of line. | ||
# | ||
# for example (left: `none`; right: `4`) | ||
# let f = g (h (i (fun x -> # let f = g (h (i (fun x -> | ||
# x) # x) | ||
# ) # ) | ||
# ) # ) | ||
max_indent = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
The `grammar.js` for typescript was assembled from two files from the | ||
tree-sitter-typescript repo. It's special because another dialect called 'tsx' | ||
is also supported. | ||
|
||
Additionally, we have to install tree-sitter-javascript. |
Oops, something went wrong.