Ashi Krishnan
f2e54a70f0
Lint.
2018-07-24 13:34:41 -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
a2f831f533
Merge branch 'master' into tree-sitter-injections
2018-07-13 16:10:19 -07:00
Max Brunsfeld
be5020f05f
Rework handling of edited ranges
2018-07-13 13:03:56 -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
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
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
David Wilson
4527a44315
Merge branch 'master' into dw-nightly-releases
2018-07-06 16:06:24 -07:00
David Wilson
9858800ec0
Mock fs.createWriteStream to fix FileRecoveryService test
2018-07-06 16:04:29 -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
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
Max Brunsfeld
4be923fe32
Merge branch 'master' into tree-sitter-injections
2018-07-05 09:55:31 -07:00
Wliu
06ea494f46
Update Jasmine stacktrace formatting
2018-07-01 17:18:16 -04:00
David Wilson
ec2abbbc92
Possible fix for FileRecoveryService test on Linux
2018-06-30 11:25:14 -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
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
Max Brunsfeld
cdb9529b68
Emit highlight change events when removing injections
...
Co-Authored-By: Ashi Krishnan <queerviolet@github.com >
2018-06-27 15:40:06 -07:00
Max Brunsfeld
6c85ff84a5
Start parsing right away when constructing a TreeSitterLanguageMode
...
Co-Authored-By: Ashi Krishnan <queerviolet@github.com >
2018-06-27 14:31:48 -07:00
Max Brunsfeld
613d4d65e9
Add text getter to SyntaxNode
...
Co-Authored-By: Ashi Krishnan <queerviolet@github.com >
2018-06-27 13:13:08 -07:00
Max Brunsfeld
4d3916f74e
Add tests and docs for addInjectionPoint
...
Also, replace `addInjectionPattern` API with a single `injectionRegExp`
field on the grammar.
Co-Authored-By: Ashi Krishnan <queerviolet@github.com >
2018-06-27 12:39:29 -07:00
Max Brunsfeld
c05dcb0bb8
Fix syntax highlighting problems with injected languages
...
Co-Authored-By: Ashi Krishnan <queerviolet@github.com >
2018-06-26 15:30:03 -07:00
Max Brunsfeld
e60f0f9b60
Get first test for grammar injections passing
...
Co-Authored-By: Ashi Krishnan <queerviolet@github.com >
2018-06-26 13:46:33 -07:00
David Wilson
d82c3979ac
Merge pull request #17521 from Aerijo/patch-1
...
Support activation hooks by grammar scope
2018-06-26 12:13:46 -07:00
Max Brunsfeld
37a3ae1491
Start work on Tree-sitter grammar injections
...
Co-Authored-By: Ashi Krishnan <queerviolet@github.com >
2018-06-22 16:21:32 -07:00
Max Brunsfeld
ed48feda82
Fix Tree-sitter folding bug affecting HTML
2018-06-18 14:41:34 -07:00
Benjamin Gray
e0041c3c24
Add tests for root-scope-used activation hook
2018-06-16 22:50:14 +10:00
Max Brunsfeld
6346f5ec9e
Grammar scoring, weigh grammar type higher than content regex match
...
This fixes another regression introduces in #17468
2018-06-07 16:17:23 -07:00
Max Brunsfeld
0148ee7d9b
Always leave room for scrollbars
2018-06-07 14:42:06 -07:00
Max Brunsfeld
70cf900ac0
Make TextEditorComponent tests reliably pass on retina screens
2018-06-07 14:09:31 -07:00
Max Brunsfeld
31f511aae7
Don't boost tree-sitter grammars' score unless they match in some way
2018-06-05 16:00:03 -07:00
Max Brunsfeld
4dbfadd0d5
Make Tree-sitter grammars' contentRegExp work as intended
2018-06-04 17:17:37 -07:00
Lee Dohm
57572d5221
Merge pull request #17008 from saadq/flow-double-slash
...
allow the use of double slash flow comments
2018-05-29 14:24:59 -07:00
Max Brunsfeld
f6d2d57299
Reparse again if there were changes since the last parse started
2018-05-23 08:11:54 -07:00
Max Brunsfeld
aced30da1f
Start work on async parsing
2018-05-23 08:11:54 -07:00
hansonw
1f685768d5
Ensure grammar activation hooks are called after emitting new editors
2018-05-15 11:32:31 -07:00
Max Brunsfeld
7c6312b277
Update assertions about lack of memory-leak in GrammarRegistry specs
2018-04-25 13:17:33 -07:00
David Wilson
5b485dcb4b
Merge pull request #15165 from segevfiner/sf-windows-update-process-env
...
Recognize Windows cmd or powershell environment in updateProcessEnv
2018-04-25 10:44:29 -04:00
David Wilson
31e9ddad1e
Merge pull request #16864 from atom/fb-mdt-etch-docks
...
Convert Dock class to Etch
2018-03-30 11:59:08 -07:00
Ash Wilson
1342316e73
Maintain a global Map of ConfigFile instances
2018-03-27 08:54:37 -04:00
Ash Wilson
60033b7db1
🎨 remove extra space
2018-03-27 08:54:16 -04:00
Ash Wilson
7c9463acea
Specs for concurrent opening
2018-03-23 09:14:48 -04:00
saadq
fc45af02ae
allow the use of double slash flow comments
2018-03-21 18:07:16 -04:00