1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 10:15:55 +03:00
Commit Graph

17331 Commits

Author SHA1 Message Date
Rick Winfrey
2614c11888 Add import statements tests 2017-11-20 19:09:03 -08:00
Rick Winfrey
78c98e1c78 Update type switch statement tests 2017-11-20 19:08:54 -08:00
Rick Winfrey
b750b8f423 Allow empty blocks for type switch statements 2017-11-20 19:08:26 -08:00
Rick Winfrey
0cfe57713d Update type declarations tests 2017-11-20 18:45:48 -08:00
Rick Winfrey
5eb138e4db Update function declarations tests 2017-11-20 18:45:39 -08:00
Rick Winfrey
0b098b6b00 Replace many with manyTerm 2017-11-20 18:45:25 -08:00
Rick Winfrey
77aedf0d1d Update typeDeclaration to use manyTerm 2017-11-20 17:08:15 -08:00
Rick Winfrey
f44d0dc3fc Add back manyTerm combinator as an alias for many term 2017-11-20 17:08:03 -08:00
Rick Winfrey
9117f5153a Update tests 2017-11-20 16:43:12 -08:00
Rick Winfrey
f48a8dcf46 Remove extra term layer for parameters 2017-11-20 16:40:20 -08:00
Rick Winfrey
7b335fb2f1 Remove term 2017-11-20 16:40:07 -08:00
Rick Winfrey
a971450c57 Replace manyTerm with many 2017-11-20 16:36:17 -08:00
Rick Winfrey
b761e8cb48 Term and handle error for top level expression 2017-11-20 16:33:30 -08:00
Rick Winfrey
b559e33b7e Use program assign rule 2017-11-20 16:33:18 -08:00
Rick Winfrey
cb584daff0 Only contextualize terms 2017-11-20 16:32:55 -08:00
Rick Winfrey
dcce44efab Don't need manyTerm now 2017-11-20 16:32:37 -08:00
Rick Winfrey
45253041ac Don't need postContextualize now 2017-11-20 16:32:28 -08:00
Rick Winfrey
03509ca544 Don't duplicate type related assignments in expressions choices 2017-11-20 16:32:11 -08:00
Rick Winfrey
81422a603d Add program assignment 2017-11-20 16:31:16 -08:00
Timothy Clem
994345f0d3 Merge pull request #1436 from github/fix-markdown-sourceLineRangesByLineNumber
Catch all forms of newlines in sourceLineRangesWithin
2017-11-20 15:34:06 -08:00
Timothy Clem
a4d11b6e63 Merge branch 'master' into fix-markdown-sourceLineRangesByLineNumber 2017-11-20 15:23:33 -08:00
Timothy Clem
16ef56d742 Merge remote-tracking branch 'origin/master' into fix-markdown-timeouts 2017-11-20 15:22:58 -08:00
Timothy Clem
94690bebaf Extract function instead of lambda 2017-11-20 15:09:13 -08:00
Timothy Clem
2f6cbe1f82 Merge pull request #1417 from github/generate-tags-with-context
Generate tags (round 2)
2017-11-20 14:38:09 -08:00
Timothy Clem
9df8c2f8a5 Add .tsx extension 2017-11-20 14:21:49 -08:00
Timothy Clem
57dd145dc2 Fix tests and demonstrate removes too 2017-11-20 14:20:34 -08:00
Timothy Clem
4aedbf9647 Track contents as children of the heading 2017-11-20 14:20:23 -08:00
Timothy Clem
631594e01e Don't nest markdown sections/headings
There's a major performance problem with the `while` approach to detecting hierarchy in markdown headings/sections. This works around by just having headings stay flat (like they are returned from the cmark parser).
2017-11-20 13:47:46 -08:00
Timothy Clem
fcf455f9b1 Use choice for markdown assignment 2017-11-20 13:45:52 -08:00
Rick Winfrey
4a44ec572f Update if statement tests with comment for else if statement 2017-11-20 11:30:52 -08:00
Rick Winfrey
2b73b4361f Term if initializer and else clause statements 2017-11-20 11:30:17 -08:00
Rick Winfrey
52bc364168 Update tests fixtures 2017-11-20 11:07:21 -08:00
Rick Winfrey
5ade935a08 Add binary expressions tests 2017-11-20 10:57:19 -08:00
Rick Winfrey
31f07845d5 Contextualize rather than term rhs of binary expression 2017-11-20 10:42:24 -08:00
Rick Winfrey
4d92c9ce4e 🔥 top level term 2017-11-20 10:41:56 -08:00
Rick Winfrey
1d6f06e2bc We don't need to term expressions 2017-11-20 10:14:22 -08:00
Timothy Clem
ec6adbadf9 Clarify output formatting options a bit 2017-11-17 10:14:45 -08:00
Rick Winfrey
2b495aa620 Bump haskell-tree-sitter 2017-11-17 09:52:20 -08:00
Timothy Clem
f24625b547 Merge branch 'master' into fix-markdown-sourceLineRangesByLineNumber 2017-11-17 08:31:28 -08:00
Timothy Clem
a227562cc6 Finally able to write a test for this
This fails with the old implmentation and captures what we are seeing in some markdown files.
2017-11-17 08:30:57 -08:00
Timothy Clem
ddb8c4f3b1 Rewrite with elemIndex
Should be a bit faster b/c elemIndex uses memchr(3) under the covers.
2017-11-17 08:02:14 -08:00
Timothy Clem
0c64dbbf5e Keep recursing for term table of contents 2017-11-16 14:59:21 -08:00
Timothy Clem
9652926841 Merge remote-tracking branch 'origin/master' into generate-tags-with-context 2017-11-16 14:35:20 -08:00
Rick Winfrey
d04b6a63f6 Re-contextualize tests 2017-11-15 16:36:15 -08:00
Rick Winfrey
e439ea941d Don't include comment in expression choices 2017-11-15 16:30:56 -08:00
Rick Winfrey
c783841ef5 Contextualize tests 2017-11-15 15:55:53 -08:00
Rick Winfrey
2cd1bc4f59 Use term to contextualize / post contextualize comments 2017-11-15 15:37:12 -08:00
Josh Vera
031a187c79 Merge pull request #1437 from github/🔥-monolithic-typescript-assignment
🔥 monolithic TypeScript assignment
2017-11-15 17:21:35 -05:00
Josh Vera
633c981901 Merge branch 'master' into 🔥-monolithic-typescript-assignment 2017-11-15 16:43:56 -05:00
Timothy Clem
891a32f7d1 Merge branch 'master' into fix-markdown-sourceLineRangesByLineNumber 2017-11-15 13:43:49 -08:00