1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 06:41:45 +03:00
Commit Graph

231 Commits

Author SHA1 Message Date
Timothy Clem
35dd550533 Keyword and positional params 2016-11-09 13:42:41 -08:00
Timothy Clem
d98d96688d Support keyword and hash arguments in Ruby 2016-11-09 10:48:50 -08:00
Timothy Clem
d978ff86b4 Get identation right for module 2016-11-08 15:54:02 -08:00
Timothy Clem
cafcd8fd91 Implement unless as a Negate syntax 2016-11-07 13:12:53 -08:00
Timothy Clem
b541a903dd Collapse up Ruby begin with Try syntax 2016-11-07 10:26:59 -08:00
Timothy Clem
463d075879 Refactor ruby case/when into switch/case Syntax and start on elsif 2016-11-04 15:35:09 -07:00
Timothy Clem
961ea9a1de Fix ruby function v. method calls 2016-11-04 14:49:39 -07:00
Timothy Clem
4ff0ccf653 New module/ternary test cases, back to broken multiple assignments 2016-11-04 12:57:08 -07:00
Timothy Clem
eee81e55fa Summaries look like this now 2016-11-04 12:56:04 -07:00
Timothy Clem
c02c32ac7c Back to a single Rescue syntax 2016-11-04 12:29:02 -07:00
Timothy Clem
345d4ed12e Squotes on method context summaries 2016-11-04 08:08:45 -07:00
Timothy Clem
91798e1fb2 Show diffs in test cases. sha1, sha2 -> shas 2016-11-03 16:02:56 -07:00
Timothy Clem
c7fd3e7434 A few updated JavaScript summaries 2016-11-03 14:34:26 -07:00
Timothy Clem
70b4a3714c Regenerate to catch method updates 2016-11-03 14:27:47 -07:00
Timothy Clem
769413813c Better begin and method declaration parsing and summaries 2016-11-03 14:24:05 -07:00
Timothy Clem
947a7f1602 No longer needed 2016-11-03 13:28:51 -07:00
Timothy Clem
6d32be890f Updated rescue and when tests 2016-11-03 13:26:53 -07:00
Timothy Clem
8df2dca93b Improve begin and when testing 2016-11-03 13:11:02 -07:00
Timothy Clem
c02dbb071f New ensure and elseif tests with new template feature 2016-11-03 13:01:39 -07:00
Timothy Clem
4daf39476e Parse rescue modifiers 2016-11-03 09:23:35 -07:00
Timothy Clem
a98185f1a6 Rescue blocks in all their glory 2016-11-02 17:18:09 -07:00
Timothy Clem
60de73b079 Revert some corpus changes that aren't needed 2016-11-02 17:10:18 -07:00
joshvera
733804973d update for-loop tests 2016-11-02 18:46:48 -04:00
joshvera
beb466c260 Fix if statement tests 2016-11-02 18:09:32 -04:00
Timothy Clem
2e4c4ee194 Fully test case/when/else 2016-11-02 13:46:33 -07:00
joshvera
cbaab076d0 update tests 2016-11-02 16:46:17 -04:00
Timothy Clem
fbe7bc7c13 Better handling of case/when 2016-11-02 13:42:06 -07:00
joshvera
e45fd2d682 Fix grouped-var-declaration tests 2016-11-02 16:35:38 -04:00
joshvera
60af2fb271 regenerate tests 2016-11-02 16:29:27 -04:00
joshvera
061d605d2d Fix tests for const-declarations-with-types, const-with-implicit-values 2016-11-02 16:14:44 -04:00
Timothy Clem
295d03dd43 Handle rescue blocks 2016-11-02 13:05:30 -07:00
Timothy Clem
71f53b37fd Handle ensure blocks and refactor to BlockExpression syntax 2016-11-02 12:55:48 -07:00
joshvera
a0941c757d Explode out const-declarations-with-types 2016-11-02 15:47:59 -04:00
joshvera
192897a37f Fix const-declarations-without-types tests 2016-11-02 15:43:26 -04:00
Timothy Clem
6eebd35a8f Improved elsif parsing and summaries 2016-11-02 12:32:46 -07:00
joshvera
0d58e97070 Merge remote-tracking branch 'origin/master' into go-parser 2016-11-02 15:25:50 -04:00
joshvera
342de506b4 update tests 2016-11-02 15:13:54 -04:00
joshvera
53f3600897 remove extra template-string.json 2016-11-02 15:01:11 -04:00
joshvera
96ea6f8e11 add all of the tests 2016-11-02 14:37:30 -04:00
Timothy Clem
185f1de69c Better handling of else blocks 2016-11-02 11:16:57 -07:00
Timothy Clem
2c1497ab99 Handle else blocks in begin statements 2016-11-02 11:10:01 -07:00
Timothy Clem
fc73be16d7 Better handling of begin statements 2016-11-02 10:52:40 -07:00
joshvera
b27bf0e72c add string literals 2016-11-02 11:07:06 -04:00
joshvera
968186b2da generate tests 2016-11-02 10:50:05 -04:00
joshvera
7580ec3248 add for, switch, and var stubs 2016-11-01 22:05:43 -04:00
joshvera
8e371856fa add imports 2016-11-01 21:36:43 -04:00
joshvera
fb99a1421a stub int literal 2016-11-01 16:33:43 -04:00
joshvera
533d43bd70 Parse function literals 2016-11-01 16:24:34 -04:00
joshvera
0a085edfeb stub function-literal 2016-11-01 14:36:23 -04:00
joshvera
05f3929b6a Merge remote-tracking branch 'origin/master' into go-parser 2016-11-01 12:48:15 -04:00
Timothy Clem
6cac25d2a9 Merge remote-tracking branch 'origin/master' into ruby 2016-11-01 08:50:54 -07:00
Rick Winfrey
67adf75fdf ++JavaScript tests 2016-11-01 10:03:25 -05:00
joshvera
95037e1b75 Add const declarations 2016-10-31 21:09:57 -04:00
joshvera
917732c48b add const declarations 2016-10-31 19:23:25 -04:00
joshvera
3b3c800193 parse function calls 2016-10-31 18:22:10 -04:00
joshvera
19f42de32c ++tests 2016-10-31 17:29:40 -04:00
joshvera
14271201ab update assignment.json 2016-10-31 17:14:18 -04:00
Timothy Clem
37ac36e22c Regenerate with s/_/- and todos 2016-10-31 13:21:58 -07:00
Timothy Clem
2c96933c29 Generate to fix multiple-assignment 2016-10-31 13:14:58 -07:00
Timothy Clem
9ac247dbd4 Element reference parsing, control statement tests 2016-10-31 10:15:44 -07:00
Rick Winfrey
16c6e1da59 ++diff-summary javascript test cases 2016-10-27 20:44:36 -05:00
Timothy Clem
ba305a2a44 Parse module declarations 2016-10-27 12:47:27 -07:00
Timothy Clem
c21307b5f7 Parse for iterator syntax 2016-10-27 10:07:24 -07:00
Timothy Clem
539a68f06e Parse lambdas 2016-10-27 09:24:28 -07:00
Timothy Clem
f09c834e01 Parse array and percent array syntax 2016-10-27 08:30:34 -07:00
Timothy Clem
fec86e0a88 New tree-sitter and fix string delimiters 2016-10-27 08:24:43 -07:00
Timothy Clem
2a9e26f144 Support regex literals 2016-10-26 15:44:53 -07:00
Timothy Clem
644d101394 Support or, and operators 2016-10-26 15:22:59 -07:00
Timothy Clem
5dd53c0b93 if/unless modifiers and (sort of) unless statements 2016-10-26 14:49:51 -07:00
Timothy Clem
3bbfb765a5 Parse if, with some caveats 2016-10-26 14:32:08 -07:00
Timothy Clem
013f6392ff Parse while and until statements and modifiers 2016-10-26 12:54:21 -07:00
Timothy Clem
986a3572d4 Merge remote-tracking branch 'origin/master' into ruby 2016-10-26 10:30:29 -07:00
Timothy Clem
1b6c70f4ee Parse yield and return 2016-10-26 10:27:38 -07:00
Timothy Clem
eb52ca6f90 Handle method arguments, updated tree-sitter-ruby 2016-10-26 10:14:39 -07:00
Timothy Clem
1bc5ba394a Classes, member invocation, case statements 2016-10-25 11:36:30 -07:00
Timothy Clem
56c2dae42f Bring in LOTS more of the ruby grammar 2016-10-24 10:43:31 -07:00
Timothy Clem
994b7a613e Ruby math assignment (todo: broken) 2016-10-21 15:52:40 -07:00
Timothy Clem
b8463b6039 Ruby delimiters (sort of) 2016-10-21 14:41:04 -07:00
Timothy Clem
22c617e9e9 Ruby interpolation parsing 2016-10-21 13:55:00 -07:00
Timothy Clem
f5621a7ed0 Test parsing ruby numbers, strings, and symbols 2016-10-21 12:59:35 -07:00
joshvera
94239b4602 Merge remote-tracking branch 'origin/master' into go-parser 2016-10-21 13:53:33 -04:00
Rick Winfrey
5be0a11707 Update Import tests 2016-10-20 17:27:30 -05:00
Timothy Clem
caeeb79799 Regenerate ruby test corpus to get valid shas 2016-10-20 10:36:33 -07:00
Timothy Clem
00cb51b083 Fix multiline comment followed by comment bug 2016-10-20 10:07:15 -07:00
Rick Winfrey
1a787335b8 Update tests 2016-10-19 18:10:28 -05:00
Timothy Clem
e4bb574700 Catch integer literals and abbreviate in summaries 2016-10-19 11:02:02 -07:00
Timothy Clem
456bbb41ae Handle basic assignment for ruby 2016-10-19 10:34:49 -07:00
Rick Winfrey
1f5c73143d ++import.json tests 2016-10-18 16:54:15 -05:00
joshvera
d5532c9299 fix insert assignment test 2016-10-18 16:56:33 -04:00
joshvera
7809618716 Add template syntax support 2016-10-18 16:10:22 -04:00
joshvera
13c615731e Replace output with failing tests 2016-10-18 14:54:54 -04:00
joshvera
1bff390a85 Change var to assignment 2016-10-18 14:52:48 -04:00
joshvera
f262eb8b4e Add go.json generator and var.json 2016-10-18 14:49:45 -04:00
Rick Winfrey
242654b05f Update tests 2016-10-17 18:41:03 -05:00
Rick Winfrey
dfc11385d8 ++tests 2016-10-14 13:40:07 -05:00
joshvera
1ec96efd63 bump tests 2016-10-14 12:19:31 -04:00
joshvera
3839a8605a Bump tests 2016-10-14 12:12:38 -04:00
Rick Winfrey
0262cb0879 Merge branch 'master' into improve-anonymous-funs 2016-10-13 17:56:39 -05:00
joshvera
ca129b2449 bump tests 2016-10-13 18:02:14 -04:00
Rick Winfrey
383573aa3d Merge branch 'master' into if-else-if 2016-10-13 17:01:23 -05:00
joshvera
4f978b7586 No quotes around anonymous functions 2016-10-13 17:58:17 -04:00
Rick Winfrey
80ebddae5c Bump tests 2016-10-13 16:44:36 -05:00
joshvera
98627b74b7 Merge remote-tracking branch 'origin/master' into improve-anonymous-funs 2016-10-13 17:39:42 -04:00
Josh Vera
9f9dc4feab Merge branch 'master' into improve-memory-usage 2016-10-13 16:21:11 -04:00
joshvera
be1ca766c1 Quote anonymous and brace exports 2016-10-13 12:56:27 -04:00
joshvera
73b947f71b Update tests 2016-10-13 12:08:44 -04:00
joshvera
10b6852882 update tests 2016-10-12 19:44:27 -04:00
Timothy Clem
1859df9500 Test to no longer expect summaries for comments 2016-10-12 14:21:40 -07:00
Rick Winfrey
1234f5dbc3 ++javascript tests 2016-10-12 14:59:58 -05:00
Rick Winfrey
d222090c37 Update if-else.json tests 2016-10-12 14:55:59 -05:00
joshvera
6ba48666ed bump files 2016-10-11 16:18:26 -04:00
joshvera
440d168273 bump tests 2016-10-11 15:13:51 -04:00
joshvera
007a1580fe Merge remote-tracking branch 'origin/master' into add-source-spans 2016-10-11 13:03:43 -04:00
joshvera
e57c80940e bump tests 2016-10-11 12:52:26 -04:00
Rick Winfrey
329ce63a8e ++tests 2016-10-11 11:07:57 -05:00
joshvera
11d5cdcde7 Bump tests 2016-10-11 12:00:34 -04:00
joshvera
4fb07c28b6 Bump tests 2016-10-11 11:54:47 -04:00
joshvera
fbb6ddbff4 Bump tests 2016-10-11 11:26:57 -04:00
joshvera
399d01af97 update tests 2016-10-11 11:12:20 -04:00
joshvera
624918b113 remove files 2016-10-11 11:10:16 -04:00
joshvera
d95283f4a1 Merge remote-tracking branch 'origin/master' into add-source-spans 2016-10-11 10:45:22 -04:00
Rick Winfrey
1569611257 Update JSONtestcases shas 2016-10-10 12:39:22 -05:00
Rick Winfrey
d6f9104237 Update tests 2016-10-07 16:43:01 -05:00
Rick Winfrey
9a3fccc1e1 Update tests 2016-10-07 15:58:51 -05:00
joshvera
c0a8483263 Merge remote-tracking branch 'origin/master' into add-source-spans 2016-10-07 11:28:57 -04:00
Rick Winfrey
4453cd1ad9 Move javascript diff summary JSON test case files 2016-10-07 10:26:45 -05:00
Timothy Clem
da90b74044 New parsing of function params 2016-10-06 15:20:05 -07:00
Timothy Clem
3d7c8cf67d Fix anonymous function parsing and summarizing 2016-10-06 12:05:10 -07:00
Timothy Clem
976b299071 Fix quoted strings 2016-10-06 11:42:21 -07:00
Timothy Clem
068481b35b Merge remote-tracking branch 'origin/master' into project-reorg 2016-10-06 08:45:04 -07:00
Timothy Clem
6cbfa91475 Try out moving project around 2016-10-05 16:17:46 -07:00