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

9411 Commits

Author SHA1 Message Date
Timothy Clem
b91f8fc987 s/an/a for when block 2016-11-03 09:35:50 -07:00
Timothy Clem
452d795ddd Merge remote-tracking branch 'origin/master' into more-ruby-parsing 2016-11-03 09:26:35 -07:00
Timothy Clem
4daf39476e Parse rescue modifiers 2016-11-03 09:23:35 -07:00
Timothy Clem
18c7914216 Match Rescue syntax in JSON renderer 2016-11-02 17:23:28 -07:00
Timothy Clem
e09beb4fc7 Remove commented out code 2016-11-02 17:19:31 -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
87bdc57c9b Order matters? 2016-11-02 13:53:42 -07: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
joshvera
d36c58b706 Add short-var-declaration support 2016-11-02 16:45:30 -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
69394f12ba Fix tests for var-declarations-without-types, var-declarations-with-types, var-declarations-with-no-expressions 2016-11-02 16:20:39 -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
Rick Winfrey
5ab3c6d6e4 Merge pull request #902 from github/syntax-term-to-json
Differentiate between ToJSON instances for SyntaxTerm
2016-11-02 11:16:46 -05:00
joshvera
b27bf0e72c add string literals 2016-11-02 11:07:06 -04:00
joshvera
eff1394ee0 Add imaginary literals 2016-11-02 11:02:55 -04:00
joshvera
edd6ebd511 Add rune literals 2016-11-02 11:02:00 -04:00
joshvera
23b91cf097 add missing cases 2016-11-02 10:54:13 -04:00
joshvera
968186b2da generate tests 2016-11-02 10:50:05 -04:00
joshvera
e217e26a81 Add more terms to generate 2016-11-02 10:47:56 -04:00
joshvera
7580ec3248 add for, switch, and var stubs 2016-11-01 22:05:43 -04:00
joshvera
bbcfd2fcb7 add var declarations 2016-11-01 21:41:49 -04:00
joshvera
8e371856fa add imports 2016-11-01 21:36:43 -04:00
joshvera
fb520a9111 move toImports out 2016-11-01 21:26:33 -04:00
joshvera
1d72d68431 move toVarDecl out 2016-11-01 21:24:38 -04:00
joshvera
160a9a34d7 move error handling out 2016-11-01 21:21:29 -04:00
Rick Winfrey
1cd998ff88 Merge branch 'master' into syntax-term-to-json 2016-11-01 17:58:15 -05:00
Rick Winfrey
f1b92d9a9e Revert JSONSyntaxTerm back to ToJSON instance 2016-11-01 16:39:33 -05:00
Rick Winfrey
4128798b34 Add Term.Instances to cabal file 2016-11-01 16:39:11 -05:00
Rick Winfrey
41cf3f32ee Remove general ToJSON instance for SyntaxTerm in Term.hs 2016-11-01 16:38:57 -05:00
Rick Winfrey
73dd1ec8a8 Create Term.Instances module
- This allows us to differentiate between ToJSON instances for
SyntaxTerm
2016-11-01 16:38:28 -05: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