1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 14:21:31 +03:00
Commit Graph

9594 Commits

Author SHA1 Message Date
Timothy Clem
489ed112a0 Match on Category instead of name and rework determiner logic 2016-12-12 17:40:28 -08:00
Timothy Clem
cd2fe4a681 Calculate determiner from following summary, not preceding patch 2016-12-12 15:27:09 -08:00
Timothy Clem
91721682a6 Give BEGIN/END their own Syntax 2016-12-12 15:26:26 -08:00
Timothy Clem
005a5f43d0 Parse BEGIN/END {} for Ruby 2016-12-12 13:41:55 -08:00
Josh Vera
a9ed40da8f Merge pull request #920 from github/ruby-parse-fixes
Ruby parse fixes
2016-12-12 14:31:36 -05:00
Timothy Clem
7fcc5ab88f Merge branch 'master' into ruby-parse-fixes 2016-12-12 09:15:01 -08:00
Timothy Clem
ecbb36b2df Merge pull request #919 from github/output-formats
New S-Expression output format for parse and diff
2016-12-12 09:14:32 -08:00
Timothy Clem
5b10012466 Parse Ruby scope operator 2016-12-12 08:30:43 -08:00
Timothy Clem
1741cef639 Parse Ruby range expressions 2016-12-11 08:36:26 -08:00
Timothy Clem
e9f8014e50 Add singleton_class category to Split 2016-12-09 16:15:49 -08:00
Timothy Clem
c9e1cfb9b2 Parse instance_variable as Identifier for now 2016-12-09 16:12:36 -08:00
Timothy Clem
526199c47d Parse pairs 2016-12-09 16:12:20 -08:00
Timothy Clem
7c9fc3e0c6 Parse singleton classes 2016-12-09 16:12:07 -08:00
Timothy Clem
616f7953a7 s/function call/method call 2016-12-09 16:10:56 -08:00
Timothy Clem
6dd7a994b6 Revert "Categorize ruby method calls as such"
This reverts commit b99a05f680abb19b819d55cb7d7c8a4da75f8cfd.
2016-12-09 15:51:08 -08:00
Timothy Clem
5db5376d93 Remove some unused imports 2016-12-09 14:52:36 -08:00
Timothy Clem
fcff364131 Remove old cata approach 2016-12-09 14:47:35 -08:00
Timothy Clem
d84537ec42 Add some style to these guards 2016-12-09 14:47:00 -08:00
Timothy Clem
df7e016c60 Collapse up parse to product json and sexp output 2016-12-09 14:32:22 -08:00
Timothy Clem
772265e0bb Rename s/test/sexpression 2016-12-09 11:42:32 -08:00
Timothy Clem
2ef173b934 Sexpr diffs show source spans and pad/indent properly 2016-12-09 11:30:41 -08:00
Timothy Clem
21aba52c7e Categorize ruby method calls as such 2016-12-09 11:29:39 -08:00
Timothy Clem
b16b8ecb87 Rework as top down recursion to print diff trees 2016-12-09 09:47:51 -08:00
Timothy Clem
bab1f677ff Hard wrap FDoc comments for readability 2016-12-09 08:33:34 -08:00
Timothy Clem
686b0dffff Add new sexp style test output for diffs 2016-12-09 08:31:13 -08:00
Timothy Clem
3b676d9f31 Play with a different parse output 2016-12-08 08:11:49 -08:00
Timothy Clem
093bb62904 Merge pull request #916 from github/follow-ruby-grammar-updates
Track latest ruby grammar changes
2016-12-07 12:12:25 -08:00
Timothy Clem
aa26c5472e Properly parse classes (with new tree-sitter trees) 2016-12-07 10:45:55 -08:00
Timothy Clem
8db7340746 Try to generate ruby if tests again 2016-12-06 12:52:01 -08:00
Timothy Clem
3e3ea818eb Move to where ConditionalOperator was 2016-12-06 12:47:16 -08:00
Timothy Clem
6e42369ffe Collapse up math assignment into operator assignment syntax 2016-12-06 12:36:56 -08:00
Timothy Clem
ec4db8d2da Fix duplicate import 2016-12-06 12:00:33 -08:00
Timothy Clem
85367c9312 Allow proper diffing of relational, bitwise and other operators in JavaScript
Fixes #771, a long standing issue in JavaScript diffing
2016-12-06 11:59:14 -08:00
Timothy Clem
3b3c6739f8 Accept all shapes of ruby operators 2016-12-06 11:56:42 -08:00
Timothy Clem
7d5741f0d3 Revert "Mysterious go ordering test fix"
This reverts commit 99c8fd24057dc3950b4b4b4b1d38b524a488fee4.
2016-12-06 11:54:40 -08:00
Timothy Clem
048ac119ed Remove need for Binary and Unary - just use operator instead. 2016-12-06 11:43:20 -08:00
Timothy Clem
97c17a1b5c Just moving operator_assignment around 2016-12-06 11:42:41 -08:00
Timothy Clem
fa33dd90a6 Mysterious go ordering test fix 2016-12-06 11:23:27 -08:00
Timothy Clem
907d9d6cff Update termConstruction for ruby with new unary and binary 2016-12-06 11:23:10 -08:00
Timothy Clem
5c0ee56565 Bring in new tree-sitter API to query all child nodes 2016-12-06 11:21:31 -08:00
Timothy Clem
696191afe2 Left hand side focused multiple assignment 2016-12-06 08:51:52 -08:00
Timothy Clem
bb17a32539 New rescue productions 2016-12-06 08:51:34 -08:00
Timothy Clem
b13262771a Fix up method calls and member_access (call) 2016-12-06 08:34:15 -08:00
Timothy Clem
73514388b6 self,nil,true,false all have productions now 2016-12-06 08:30:08 -08:00
Timothy Clem
d70045abc4 Minor js updates after fixing switch/case 2016-12-06 08:29:34 -08:00
Timothy Clem
bde540cd61 Other form of lambda works too 2016-12-06 08:22:02 -08:00
Timothy Clem
bcfac758b6 Update lambda statements to single production 2016-12-06 08:20:27 -08:00
Timothy Clem
4cc250e6cd If statements work again 2016-12-06 08:19:54 -08:00
Timothy Clem
a99724bacd Ruby when/else parsing also works 2016-12-06 08:15:26 -08:00
Timothy Clem
d7317e7360 Fix up Ruby case/when parsing 2016-12-06 08:14:23 -08:00