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
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
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
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
Max Brunsfeld
10d8d515ba
Only search for injection markers within a layer's included ranges
2018-07-09 16:00:23 -07:00
Ashi Krishnan
ca854cc267
Spec for injected language folding.
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@github.com >
2018-07-09 17:17:58 -04:00
Ashi Krishnan
d6669f4337
Folding works, though folding to a particular level doesn't respect nested grammars.
...
Co-Authored-By: Max <maxbrunsfeld@github.com >
2018-07-09 16:33:24 -04:00
Max Brunsfeld
9484729969
Make select-larger-syntax-node command respect injected languages
...
Co-Authored-By: Ashi Krishnan <queerviolet@github.com >
2018-07-09 11:06:53 -07:00
Lexis Alexander
4d48ea8da2
Fixed failing tests and moved hiding of tooltips on keydown events to tooltip manager.
2018-07-09 00:58:03 -07:00
Lexis Alexander
b53b4e6302
Fixed liniting issues.
2018-07-08 19:50:07 -07:00
Lexis Alexander
5dd84a9bc5
Removed undefined check for event passed in to hideOnClickOrTypeOutsideOfTooltip.
2018-07-08 18:51:38 -07:00
Lexis Alexander
0d67f362ef
Changed function name from hideOrClickOutsideOfTooltip to hideOnClickOrTypeOutsideOfTooltip.
2018-07-08 04:46:50 -07:00
David Wilson
4527a44315
Merge branch 'master' into dw-nightly-releases
2018-07-06 16:06:24 -07:00
Max Brunsfeld
653a66619a
Fix error when injection points are added before grammars are loaded
2018-07-06 15:31:33 -07:00
Max Brunsfeld
1c64fc85a8
Preload main modules of language-html and language-javascript
2018-07-06 14:56:46 -07:00
Max Brunsfeld
4de1a5c23d
Merge branch 'master' into tree-sitter-injections
2018-07-06 14:03:56 -07:00
Max Brunsfeld
670371c376
Fix propogation of included ranges for injections within injections
...
Co-Authored-By: Ashi Krishnan <queerviolet@github.com >
2018-07-06 13:53:13 -07:00
Max Brunsfeld
a9da395f60
Fix linter errors
2018-07-06 12:21:11 -07:00
Max Brunsfeld
1ba18314f9
Remove grammar argument from populateInjections
...
Co-Authored-By: Ashi Krishnan <queerviolet@github.com >
2018-07-06 12:15:30 -07:00
Max Brunsfeld
94999cc5e3
Revert "Allow for parsing injections in parallel"
...
This reverts commit a484ca9e65 .
2018-07-06 11:54:18 -07:00
Matthew Dapena-Tretter
f60f1692fd
Reset goal column on all cursor changes
...
Previously, pressing the home key (move-to-first-character-of-line)
while on an empty line wouldn't clear the goal column. This is because
it was only cleared on cursor *change* and that didn't result in a
change. With this commit, it's *always* cleared. Operations that want
to preserve the goal column can reset it afterwards.
2018-07-05 20:13:59 -07:00
Lexis Alexander
8af3079e0f
Hides a tooltip when a user types in the editor.
...
-This addes a new keydown event that hides a tooltip when keyboard events occur.
-This closes #17431 .
2018-07-05 20:00:10 -07:00
Ashi Krishnan
8f16cf1f19
injectionPoint content can return an array of nodes now
2018-07-05 17:46:13 -04:00
Ashi Krishnan
0e15dc2ffe
Merge branch 'tree-sitter-injections' of github.com:atom/atom into tree-sitter-injections
2018-07-05 13:09:28 -04:00
Ashi Krishnan
302ee1e2c1
WIP child ranges
2018-07-05 13:09:22 -04:00
Max Brunsfeld
4be923fe32
Merge branch 'master' into tree-sitter-injections
2018-07-05 09:55:31 -07:00
Max Brunsfeld
a484ca9e65
Allow for parsing injections in parallel
2018-06-29 16:26:51 -07:00
David Wilson
0d6b5d9e73
Fix CommandInstaller tests
2018-06-29 15:32:29 -07:00
Max Brunsfeld
e16e68094f
Update highlighting when an injectable tree-sitter grammar is loaded
2018-06-29 14:47:38 -07:00
Max Brunsfeld
623af0ca90
Fix possible mismatch between .findMarkers and .descendantsOfType
2018-06-29 12:55:43 -07:00
Max Brunsfeld
60c59c795c
Fix highlighting problem when seeking past the end of a syntax tree
2018-06-29 12:53:43 -07:00
Max Brunsfeld
41c124cc13
Define highlight iter's position in terms of tree cursor position
...
Co-Authored-By: Ashi Krishnan <queerviolet@github.com >
2018-06-28 19:50:57 -07:00
David Wilson
cd83486c7d
Fix isReleasedVersion check in AtomEnvironment
2018-06-28 14:29:09 -07:00
David Wilson
bd5d258d80
Detect any channel name in AtomEnvironment.getReleaseChannel
2018-06-28 12:53:14 -07:00
David Wilson
691d5da97c
Command installer should use known channel names
2018-06-28 12:52:57 -07:00