1
1
mirror of https://github.com/github/semantic.git synced 2024-11-29 02:44:36 +03:00
Commit Graph

10035 Commits

Author SHA1 Message Date
Rob Rix
4d1d84ef9f Map parse error categories in one place. 2017-01-19 15:09:22 -05:00
Rob Rix
abe529534a Don’t add “modifier” for now. 2017-01-19 14:05:51 -05:00
Rob Rix
cd5a51aa7a Disable -Wdeprecations on files pattern matching against Category.
We can’t 🔥 RescueModifier yet because of RWS instability. See also #778.
2017-01-19 14:01:48 -05:00
Rob Rix
ae7a91d9da Deprecate RescueModifier. 2017-01-19 14:01:01 -05:00
Rob Rix
eb8c09f2b5 Revert "🔥 RescueModifier."
This reverts commit 9eda5f256678287b9252a7c654ffcaf486b22c21.
2017-01-19 13:51:24 -05:00
Rob Rix
ca1647d45e Disambiguate the Rescue category 😞 2017-01-19 13:16:31 -05:00
Rob Rix
9c064da12f Compute a simpler string for rescue modifiers. 2017-01-19 13:14:40 -05:00
Rob Rix
21dabbe077 🔥 RescueModifier. 2017-01-19 13:13:57 -05:00
Rob Rix
8df4e8ca7b Look for Modifier Rescue, not RescueModifier. 2017-01-19 13:12:59 -05:00
Rob Rix
36a6760347 Match against Modifier categories where appropriate. 2017-01-19 13:09:39 -05:00
Rob Rix
2f3dfd2df7 Compact the unless/until rules. 2017-01-19 13:07:55 -05:00
Rob Rix
d9397f930c Handle Until/Unless in the same manner as the other control statements/modifiers. 2017-01-19 13:06:12 -05:00
Rob Rix
72f2260164 Ruby term assignment is pure except for operators. 2017-01-19 13:01:59 -05:00
Rob Rix
37141178ea Map Ruby modifier productions onto Modifier categories. 2017-01-19 12:56:09 -05:00
Rob Rix
408ad2ecc5 Add Modifier categories.
These are used when a normal syntactic category is attached as a modifier instead of as a statement, e.g.:

```ruby
if foo then bar end
```

vs.

```ruby
bar if foo
```
2017-01-19 12:55:06 -05:00
Rob Rix
33040ea22e Assign terms based on the Category. 2017-01-19 12:26:45 -05:00
Rob Rix
83acde8ad4 Add a function computing the Category for a given language & production name. 2017-01-19 12:26:20 -05:00
Rob Rix
fde31b836e Go term assignment is pure. 2017-01-19 12:02:35 -05:00
Josh Vera
e07166bd8f Merge pull request #928 from github/more-go-terms
More go terms
2017-01-18 16:26:51 -05:00
joshvera
a5709517e7 bump ruby 2017-01-18 15:37:29 -05:00
joshvera
ee10187ba1 Merge remote-tracking branch 'origin/master' into more-go-terms 2017-01-18 15:36:02 -05:00
Josh Vera
44b7f3281c Merge pull request #934 from github/evaluate-source-spans-eagerly
Evaluate source spans eagerly
2017-01-18 15:35:41 -05:00
joshvera
7880046c40 Bump ruby tests for class superclasses 2017-01-18 15:18:45 -05:00
joshvera
69a3dc061c bump method tests 2017-01-18 15:12:54 -05:00
joshvera
95d6f7a850 Add a maybeRecursively so we compare optional values as insertions or deletions when one side is missing 2017-01-18 15:08:30 -05:00
joshvera
9966b88f1b s/if statement/maybe 2017-01-18 14:07:39 -05:00
joshvera
7f396dd7b7 Rename Default to DefaultCase 2017-01-18 14:06:45 -05:00
joshvera
b3a300f745 Add docs 2017-01-18 14:02:06 -05:00
Rob Rix
dbcfb85c1c This comment now applies to sourceSpan as well. 2017-01-18 13:40:55 -05:00
Rob Rix
0854ba66e2 Evaluate the SourceSpan strictly. 2017-01-18 13:39:58 -05:00
Rob Rix
60a8f588e4 Term assignment takes a pure SourceSpan.
We always access this now, so we don’t need to guard it in IO.
2017-01-18 13:39:40 -05:00
joshvera
d34b8e2354 Parse methods 2017-01-18 13:38:31 -05:00
joshvera
9c689cc05a update tests for pairs 2017-01-18 13:23:54 -05:00
joshvera
d4c33c0176 Map keyed_element to Pair 2017-01-18 13:01:25 -05:00
joshvera
0acdf470e4 Remove identifer_list wrapper in field declarations 2017-01-18 12:53:12 -05:00
joshvera
8e88838495 Merge remote-tracking branch 'origin/master' into more-go-terms 2017-01-18 11:14:03 -05:00
joshvera
2af1bc0109 update tests 2017-01-17 21:06:49 -05:00
joshvera
0c24778b05 add rune literal case 2017-01-17 18:57:43 -05:00
joshvera
496e95a41f fix rune tests 2017-01-17 18:55:59 -05:00
joshvera
b845e8d778 Fix type-declarations terms in go.json 2017-01-17 17:31:09 -05:00
joshvera
fc55bee5fc Change Break and Continue to take a Maybe 2017-01-17 17:20:50 -05:00
joshvera
0c36efc850 Fix ranges and categories for const var assignments 2017-01-17 17:10:34 -05:00
joshvera
591c8b986e bump tests 2017-01-17 15:26:07 -05:00
joshvera
c3201ed689 Map var declarations to VarDecl 2017-01-17 14:56:59 -05:00
joshvera
23450d64ee Clean up dead code 2017-01-17 13:20:46 -05:00
joshvera
e97330fe83 Map short var declarations to var assignments 2017-01-17 13:19:46 -05:00
joshvera
f3d29d894e Convert var_declaration to Indexed and var_spec to VarAssignment 2017-01-17 12:30:42 -05:00
joshvera
a95d57c8cf Parse struct type declarations 2017-01-17 12:23:56 -05:00
joshvera
71a147862a tags can only be strings in field declarations 2017-01-17 12:06:26 -05:00
joshvera
74b2b1715c Add correct ranges to errors 2017-01-17 11:54:11 -05:00