Commit Graph

4096 Commits (3d5bd4069f9fc5287d762d4a705597a99f543d33)
 

Author SHA1 Message Date
Wilfred Hughes 43902c3fa9 Include language name in tree-sitter parsing mode 2021-08-21 22:36:44 +07:00
Wilfred Hughes 47a83d4717 Rename sitter to tree_sitter_parser for consistency 2021-08-21 22:15:34 +07:00
Wilfred Hughes 6a83368a4f Split parse into regex_parser and line_parser 2021-08-21 22:13:04 +07:00
Wilfred Hughes 7e30b8cc04 Only rebuild C files if the relevant dir changes 2021-08-21 19:24:54 +07:00
Wilfred Hughes 80ba6f3749 Get tests running again 2021-08-21 19:24:28 +07:00
Wilfred Hughes edb41a9ceb Fix missing closing doublequote in string literals from previous commit 2021-08-21 19:19:34 +07:00
Wilfred Hughes 001a36a7e3 Define regexp parsers in code rather than TOML 2021-08-21 19:13:01 +07:00
Wilfred Hughes 5768b2bcfa Support tree-sitter parser with .mli files 2021-08-19 22:58:55 +07:00
Microsoft Provenance Contributions 83816f563c
Update package.json to include the repository key (#178)
With the rise in supply chain attacks and OSS dependencies being used as a attack vector, Microsoft is working with our ecosystem partners, such as the Linux Foundation's OpenSSF, to enable OSS consumers to track packages back to their public sources.
We've identified that the following packages published to NPM do not report where sources can be found, typically accomplished by including a link to your GitHub repository in your `package.json` REPOSITORY field. This PR was created to add this value, ensuring future releases will include this provenance information.
Published NPM packages with repository information:
* tree-sitter-typescript
2021-08-17 11:21:26 +07:00
Microsoft Provenance Contributions cc7bdd3e6d
Update package.json to include the repository key (#111)
With the rise in supply chain attacks and OSS dependencies being used as a attack vector, Microsoft is working with our ecosystem partners, such as the Linux Foundation's OpenSSF, to enable OSS consumers to track packages back to their public sources.
We've identified that the following packages published to NPM do not report where sources can be found, typically accomplished by including a link to your GitHub repository in your `package.json` REPOSITORY field. This PR was created to add this value, ensuring future releases will include this provenance information.
Published NPM packages with repository information:
* tree-sitter-rust
2021-08-17 11:21:11 +07:00
Wilfred Hughes 37ea94a53d cargo fmt 2021-08-17 09:24:18 +07:00
Wilfred Hughes bdd3667420 Mention tree-sitter in readme 2021-08-16 22:33:07 +07:00
Wilfred Hughes 6f1a069a75 Document usage of tree-sitter 2021-08-16 22:30:12 +07:00
Wilfred Hughes 940a25bda1 Merge branch 'tree_sitter_prototype' 2021-08-16 22:28:46 +07:00
Wilfred Hughes 69033f3cd2 Make the tree-sitter parser opt-in 2021-08-16 22:28:07 +07:00
Wilfred Hughes 48b003eca6 Hook up tree-sitter-clojure 2021-08-16 22:26:18 +07:00
Wilfred Hughes 1b3c54139b Add 'vendor/tree-sitter-clojure/' from commit '39bf0977d223879436c1425fe6bfeb3bcfd86f92'
git-subtree-dir: vendor/tree-sitter-clojure
git-subtree-mainline: 47d888c140
git-subtree-split: 39bf0977d2
2021-08-16 22:18:08 +07:00
Wilfred Hughes 47d888c140 Add a JSX test file 2021-08-16 22:17:32 +07:00
Wilfred Hughes 91f80d8245 Document adding a parser 2021-08-16 22:17:25 +07:00
Wilfred Hughes 4fae2e9ef5 Hook up tree-sitter-ocaml for .mli files 2021-08-16 22:08:55 +07:00
Wilfred Hughes 96673ee2d6 Remove unnecessary flag 2021-08-16 22:08:38 +07:00
Wilfred Hughes 8ddb51ac82 Hook up tree-sitter-ocaml 2021-08-16 22:00:16 +07:00
Wilfred Hughes 28e824ca6c Support C++ files in tree-sitter parsers 2021-08-16 21:48:00 +07:00
Wilfred Hughes 49d7750285 Allow each tree-sitter package to specify its files to build 2021-08-16 21:33:11 +07:00
Wilfred Hughes 4a6bb3db1f Add 'vendor/tree-sitter-ocaml/' from commit '0348562f385bc2bd67ecf181425e1afd6d454192'
git-subtree-dir: vendor/tree-sitter-ocaml
git-subtree-mainline: 7f259afc79
git-subtree-split: 0348562f38
2021-08-16 20:53:23 +07:00
Microsoft Provenance Contributions d09ab34013
Update package.json to include the repository key (#77)
With the rise in supply chain attacks and OSS dependencies being used as a attack vector, Microsoft is working with our ecosystem partners, such as the Linux Foundation's OpenSSF, to enable OSS consumers to track packages back to their public sources.
We've identified that the following packages published to NPM do not report where sources can be found, typically accomplished by including a link to your GitHub repository in your `package.json` REPOSITORY field. This PR was created to add this value, ensuring future releases will include this provenance information.
Published NPM packages with repository information:
* tree-sitter-c
2021-08-16 09:37:46 +07:00
Wilfred Hughes 7f259afc79 Hook up tree-sitter-javascript for .js and .jsx 2021-08-16 00:21:56 +07:00
Wilfred Hughes a8575f25d0 Treat golang string literals as atoms 2021-08-16 00:18:48 +07:00
Wilfred Hughes 48ac079685 Add 'vendor/tree-sitter-javascript/' from commit 'bc2eb3994fd7cc605d27a32f9fcbee80bbb57f6d'
git-subtree-dir: vendor/tree-sitter-javascript
git-subtree-mainline: dd92c10ce9
git-subtree-split: bc2eb3994f
2021-08-16 00:06:39 +07:00
Wilfred Hughes dd92c10ce9 Hook up tree-sitter-json 2021-08-16 00:05:33 +07:00
Wilfred Hughes 0aa6245125 Hook up tree-sitter-elisp 2021-08-16 00:01:40 +07:00
Wilfred Hughes 3d0e80eb9a Add 'vendor/tree-sitter-elisp/' from commit '6fea410c8bab85639cf50041b5cbec3cbcb2de4c'
git-subtree-dir: vendor/tree-sitter-elisp
git-subtree-mainline: 70ef48dbb8
git-subtree-split: 6fea410c8b
2021-08-15 23:59:34 +07:00
Wilfred Hughes 6fea410c8b Roll version 2021-08-15 23:47:12 +07:00
Wilfred Hughes f0b4c47d71 Simplify string literal pattern 2021-08-15 23:44:28 +07:00
Wilfred Hughes 6b4eabaeb5 Treat . as a normal symbol
Whilst it's true that (1 2 . nil) has special meaning, '(foo .) is
totally legal elisp.
2021-08-15 23:26:09 +07:00
Wilfred Hughes ac7cbffdf2 Ban ; in symbols to be defensive 2021-08-15 23:20:37 +07:00
Wilfred Hughes 7df38dc100 Allow escaped ; in characters 2021-08-15 23:19:58 +07:00
Wilfred Hughes 068a289701 Don't allow " in symbols without escaping 2021-08-15 23:17:39 +07:00
Wilfred Hughes bd1712cbd8 Make symbol regexp more tolerant
Elisp accepts a ton of different things in its symbol syntax.
2021-08-15 23:08:55 +07:00
Wilfred Hughes 3795beb5e6 Expand and combine list tests 2021-08-15 22:48:27 +07:00
Wilfred Hughes f94da4e9f5 Symbols can contain . 2021-08-15 22:47:06 +07:00
Wilfred Hughes a3e45ac3ca Don't allow symbols to start with ?
This would break sequences of character literals without spaces.
2021-08-15 22:43:30 +07:00
Wilfred Hughes fd8b148d08 & may occur anywhere in symbols 2021-08-15 22:36:10 +07:00
Wilfred Hughes 74a4f787cd Support escaped char literals 2021-08-15 22:21:26 +07:00
Wilfred Hughes 56be29d22b Expand integer literal tests 2021-08-15 22:05:47 +07:00
Wilfred Hughes 4cb77b0cca Support keycode characters 2021-08-15 22:02:11 +07:00
Wilfred Hughes eddcb63303 Fix grammar in readme 2021-08-15 21:32:46 +07:00
Wilfred Hughes 66da6568df Mention the textmate grammar 2021-08-15 20:37:55 +07:00
Wilfred Hughes db6d3423c0 Set a scope consistent with the textmate elisp grammar 2021-08-15 20:37:18 +07:00
Wilfred Hughes b93461f0c4 Move character literals to separate file 2021-08-15 18:59:55 +07:00