Commit Graph

16975 Commits

Author SHA1 Message Date
David Wilson
b84592ba10 Allow nightly releases to auto-update
This change removes a bad version check which prevented nightly releases 
to be considered for auto-update checks.  The fix is to only skip 
auto-updates when using a build with a version containing `-dev`.

Fixes #17885
2018-08-20 15:40:14 -07:00
Max Brunsfeld
fd6f9d39bd Make tree-sitter scope descriptors match HTML classes, not syntax tree 2018-08-20 10:40:55 -07:00
Max Brunsfeld
760b38c54b Support a single scope name field on Tree-sitter grammars
* Remove the `legacyScopeName` field
* Remove the legacy scope name concept from the Config class
* Handle tree-sitter grammars and textmate grammars having the same 
scope names
2018-08-20 09:58:37 -07:00
David Wilson
f922b7bd91 Merge pull request #17779 from atom/fb-mdt-esc-shouldnt-destroy
Don't take destructive action on esc
2018-08-15 06:41:36 -07:00
Joseph Lyons
0a361de70e Added word "want" in sentence 2018-08-11 01:09:33 -04:00
Max Brunsfeld
9072e58ea7 Merge pull request #17816 from atom/mb-tree-sitter-grammar-regex-tweaks
Support two different content-matching regexes for tree-sitter grammars
2018-08-10 13:33:24 -07:00
Max Brunsfeld
6d54578daa Use setTimeout instead of setImmediate in MenuManager
This should fix the flaky test failures that have been occurring on windows VSTS builds
2018-08-10 12:33:00 -07:00
Max Brunsfeld
87784989ad Merge pull request #17750 from atom/mb-reduce-test-noise
Fix errors causing tests to fail when run from the UI
2018-08-10 12:22:54 -07:00
Max Brunsfeld
858071d54e 👕 2018-08-09 17:48:08 -07:00
Max Brunsfeld
6f41353e9f Support two different content-matching regexes for tree-sitter grammars
* firstLineRegex is only tested against the first line of the file, and
  if it matches, it allows the grammar to be used for the file.
* contentRegex is only tested if the grammar matched the file name
  or the grammar's firstLineRegex matched. It is used to break ties
  between grammars like C and C++, Flow and JS
2018-08-09 17:19:32 -07:00
Max Brunsfeld
826844c7e0 Emit onDidTokenize event from TreeSitterLanguageMode 2018-08-07 21:03:03 -07:00
Max Brunsfeld
fce7360cdd Avoid stack overflows due to spread in Array.splice call 2018-08-06 15:32:18 -07:00
Max Brunsfeld
53218b921b Merge pull request #17774 from atom/fb-mdt-atomic-config-saves
Write config file atomically
2018-08-06 11:36:44 -07:00
Max Brunsfeld
058e2b82dc Allow comma-separated selectors as keys in Tree-sitter scope mappings 2018-08-04 17:17:43 -07:00
Matthew Dapena-Tretter
272566dfad Don't take destructive action on esc 2018-08-03 13:19:40 -07:00
Matthew Dapena-Tretter
f77391b158 Write config file atomically (write and replace) 2018-08-03 10:38:12 -07:00
Winston Liu
3e97867f3e 📝 correctly link function in docs
[ci skip]
2018-08-02 17:24:03 -05:00
Ashi Krishnan
639164034f Merge branch 'master' into regex-matchers-for-style-map 2018-07-30 12:46:08 -04:00
Max Brunsfeld
5f0231b398 Listen for IPC messages lazily in application delegate 2018-07-26 10:39:36 -07:00
Max Brunsfeld
1e2e461e5e Avoid excessive numbers of IPC event listeners in ApplicationDelegate 2018-07-26 10:20:01 -07: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