Commit Graph

16956 Commits

Author SHA1 Message Date
Ashi Krishnan
639164034f Merge branch 'master' into regex-matchers-for-style-map 2018-07-30 12:46:08 -04:00
Jason Rudolph
c52dc23242 Merge pull request #17744 from atom/fix-17535
Teach Pane to always look for a pane item's onDidTerminatePendingState function
2018-07-26 08:44:49 -04:00
Max Brunsfeld
024feb1fff Merge pull request #17740 from atom/mb-tree-sitter-python-highlighting-fix
Fix tree-sitter highlighting regression affecting python
2018-07-24 16:51:24 -07:00
Max Brunsfeld
aefc3233e3 Highlight iterator - only ascend when at the last child 2018-07-24 14:28:03 -07:00
Jason Rudolph
4402dd6d29 Fix #17535
Treat `onDidTerminatePendingState` and `onDidDestroy` as independent 
optional functions that a PaneItem can implement. A PaneItem is free to 
implement neither, just one of them, or both of them.
2018-07-24 16:50:47 -04:00
Ashi Krishnan
f91a4bb295 Merge pull request #17721 from atom/get-range-for-syntax-node-with-selector
Add TreeSitterLanguageMode::getSyntaxNodeContainingRange and TreeSitterLanguageMode::getSyntaxNodeAtPosition
2018-07-24 16:00:54 -04:00
Ashi Krishnan
aaa52d4036 Trailing ws 2018-07-24 15:00:54 -04:00
Ashi Krishnan
f693df2314 Remove unnecessary function and equally unnecessary whitespace. 2018-07-24 14:35:02 -04:00
Ashi Krishnan
b61ade47fc Merge master. 2018-07-24 14:09:42 -04:00
Ashi Krishnan
8435d7edad Update tree-sitter-language-mode.js
Don't use a default predicate for `getRangeForSyntaxNodeContainingRange`.
2018-07-24 14:03:26 -04:00
Ashi Krishnan
f2e54a70f0 Lint. 2018-07-24 13:34:41 -04:00
Ashi Krishnan
97ae903cab It feels more natural for these rules to be applied top to bottom rather than bottom to top. 2018-07-24 13:04:34 -04:00
Ashi Krishnan
9fa320a954 Regex and exact match rules support in the scope map. 2018-07-24 12:49:41 -04:00
Ashi Krishnan
d6ac437eb8 Restore getRangeForSyntaxNodeContainingRange to ensure selectLargerSyntaxNode and selectSmallerSyntaxNode keep working. 2018-07-23 16:00:00 -04:00
Ashi Krishnan
45ab5488ae Remove debugger, test focus, and lint fixes. 2018-07-23 15:59:22 -04:00
Ashi Krishnan
311b28a3a5 Added getSyntaxNodeAtPosition and getSyntaxNodeContainingRange, tested 2018-07-20 21:16:59 -04:00
Ashi Krishnan
7cbd209811 Allow a node matching function in bufferRangeForScopeAtPosition 2018-07-20 20:56:53 -04:00
Ashi Krishnan
be0565f3f4 Convert to atom doc 2018-07-20 18:47:46 -04:00
Ashi Krishnan
32c4624d95 Add specs, clean up whitespace. 2018-07-20 18:37:41 -04:00
Ashi Krishnan
6fe8b54350 Add tests and fix up the ascent query to find the smallest matching node. 2018-07-20 18:16:22 -04:00
Max Brunsfeld
12a3972d90 🎨 Remove empty if branch 2018-07-20 14:18:55 -07:00
Jason Rudolph
457cde4525 Merge pull request #17720 from atom/jr-observe-repositories
Introduce `observeRepositories` and `onDidAddRepository`
2018-07-20 17:06:39 -04:00
Ashi Krishnan
176ee2a3b3 Change TreeSitterLanguageMode::bufferRangeForScopeAtPosition(position) to
bufferRangeForScopeAtPosition(selector, position), to match the TextMateLanguageMode
signature, extracting some selector matching logic to do so.

Needed for https://github.com/atom/toggle-quotes/issues/57
2018-07-20 16:22:15 -04:00
Max Brunsfeld
3e6b95bfbb Preload language-ruby's main module during snapshotting 2018-07-20 12:46:12 -07:00
Max Brunsfeld
67402229f4 Merge pull request #17717 from atom/mb-tree-sitter-fixes
Fix bugs found when adding ruby tree-sitter grammar
2018-07-20 11:59:50 -07:00
Max Brunsfeld
9555449489 🎨 Clean up TreeSitterLanguageMode 2018-07-20 11:10:12 -07:00
Jason Rudolph
55da0d8f5d Introduce atom.project.observeRepositories(callback) 2018-07-20 14:05:56 -04:00
Jason Rudolph
806d9311bf Introduce atom.project.onDidAddRepository(callback) 2018-07-20 14:04:22 -04:00
Max Brunsfeld
ac3bc51c2a Improve criteria for when to fold partial vs entire buffer rows 2018-07-20 10:43:32 -07:00
Max Brunsfeld
137acb2f90 Fix highlighting when parent nodes extend beyond their first and last children 2018-07-20 10:16:19 -07:00
Max Brunsfeld
a283ca365f Fix a ruby folding issue 2018-07-19 17:15:04 -07:00
Max Brunsfeld
e500f933e0 Merge pull request #17702 from atom/fb-rh-text-editor-component-updateClassList
Modify TextEditorComponent updateClassList to always add managed classes to element
2018-07-19 16:27:21 -07:00
Max Brunsfeld
c9a4bb4245 Fix logic for updating foldable range cache 2018-07-18 17:09:47 -07:00
Max Brunsfeld
8fa9a45a54 Incorporated injected languages in scope descriptors 2018-07-16 14:17:39 -07:00
Max Brunsfeld
ebd546f572 Fix handling of folds inside highlighted tokens 2018-07-16 14:17:39 -07:00
Ryan Holinshead
79de674508 Currently, the updateClassList function on the TextEditorComponent does not properly re-add its managed classes (editor, is-focused, mini) to the element when the element has been re-rendered with changed classes passed in. This fixes the issue by always adding the newClassList classes to the element and relying on the element.classList.add to determine if the classes already exist (and should be ignored)
Released under CC0
2018-07-13 16:45:04 -07:00
Max Brunsfeld
2a0e49d684 Silence complaint from standard 🙄 2018-07-13 16:31:30 -07:00
Max Brunsfeld
a2f831f533 Merge branch 'master' into tree-sitter-injections 2018-07-13 16:10:19 -07:00
Max Brunsfeld
7a196589f8 Return containing tags from seek in the correct order 2018-07-13 16:07:14 -07:00
Max Brunsfeld
bf69fd92bb Move helper functions to the bottom of the file 2018-07-13 13:05:27 -07:00
Max Brunsfeld
be5020f05f Rework handling of edited ranges 2018-07-13 13:03:56 -07:00
Max Brunsfeld
6fe6efc38d Represent the full node range set as null
We already had conditional logic based on whether the node range set
was 'full'.
2018-07-13 11:28:32 -07:00
Max Brunsfeld
5b0ae5aa5c Remove concurrency limit on parsing 2018-07-12 17:57:22 -07:00
David Wilson
972b11c5d0 Merge pull request #17538 from atom/dw-nightly-releases
Implement RFC 002: Atom Nightly Releases
2018-07-11 10:28:26 -07:00
Max Brunsfeld
6239720d45 👕 Fix lint errors 2018-07-10 13:17:47 -07:00
Lee Dohm
3938846f5e Merge pull request #17569 from fedelibre/doc-open-position
Doc: explain how to open a file at a certain line and column
2018-07-10 13:12:45 -07:00
Lee Dohm
5a6b3c6e99 Merge pull request #17651 from cacheflow/tooltip-should-fade-on-keybaord-event-17431
Tooltip should fade on keybaord event 17431
2018-07-10 13:11:52 -07:00
Max Brunsfeld
99a6237c2c Avoid repeated characterIndexForPosition calls in HighlightIterator.seek 2018-07-10 12:06:25 -07:00
Max Brunsfeld
a6c61f9ae3 Avoid O(injectionCount) linear searches in highlight iterator 2018-07-10 11:25:24 -07:00
Max Brunsfeld
79071996a6 WIP - put back parse queue 2018-07-09 16:01:05 -07:00