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
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
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
Ash Wilson
8fee5f8fb2
Merge remote-tracking branch 'origin/master' into aw/no-really-read-only
2018-03-21 11:55:52 -04:00
Ash Wilson
cf576a0a7e
Verify Buffer-modifying methods on Selection
2018-03-21 11:52:47 -04:00
Ash Wilson
56a3f1bc41
Fill in missing ensureWritable() calls caught by the specs
2018-03-21 09:29:36 -04:00
t9md
38f080ef07
🔥 unnecessary async
2018-03-21 14:28:38 +09:00
t9md
f303d5906e
✅ undo/redo restore selection of change-initiated-editor
2018-03-21 14:26:05 +09:00
Ash Wilson
0f30f8d569
Specs for calling buffer modification methods on read-only editors
2018-03-20 16:31:06 -04:00
Antonio Scandurra
26837d65b4
Clip cursor width when soft-wrap is on and cursor is at the end of line
...
This prevents the parent tile from disabling sub-pixel anti-aliasing.
For some reason, adding `overflow: hidden` to the cursor container
element doesn't solve the issue, so we're adding this workaround
instead.
2018-03-13 12:04:35 +01:00
Philip Weiss
d7eff0ec55
Merge branch 'master' into fb-pw-simple-project-config
2018-03-09 14:06:14 -08:00
Antonio Scandurra
e2c89b29c8
Merge pull request #16428 from ernesto28/resize-pane
...
Resize pane
2018-03-09 08:38:44 +01:00
Matthew Dapena-Tretter
113453a219
Convert Dock to an etch component
2018-03-06 15:45:29 -08:00
Philip Weiss
685292bb8d
fix linting issues
2018-03-06 11:09:58 -08:00
Philip Weiss
062dfdea80
address PR comments
2018-03-06 11:06:22 -08:00
Linus Eriksson
a790f1e3ec
Randomize fontSize and lineHeight in the random test
...
This causes the failure fixed by https://github.com/atom/atom/pull/15831
to be caught by the randomized test more easily
2018-03-05 17:24:19 +01:00
Philip Weiss
232f821c35
remove getProjectSettings
2018-03-01 19:45:40 -08:00
Philip Weiss
3c02ab3621
add more spec
2018-03-01 19:12:53 -08:00
Philip Weiss
d5aaf9117a
update with max's suggestions
2018-03-01 19:09:22 -08:00
Philip Weiss
9d95fd613e
Merge branch 'fb-pw-simple-project-config' of github.com:atom/atom into fb-pw-simple-project-config
2018-03-01 13:28:25 -08:00
Philip Weiss
9fb756feeb
save entire settings object, rather than just the filename
2018-03-01 13:28:16 -08:00
Philip Weiss
8f672b2e5f
Merge branch 'master' into fb-pw-simple-project-config
2018-02-26 17:13:58 -08:00
Philip Weiss
48d3677664
update project api names
2018-02-26 15:45:56 -08:00
Philip Weiss
547b067f3e
add callback to onDidReplaceAtomProject and add tests
2018-02-26 14:38:50 -08:00
Jordan Eldredge
fa9c8d1ace
Merge pull request #16661 from captbaritone/context-menu-order-master
...
Enable packages to control order of context menu items
2018-02-22 09:36:43 -08:00
Segev Finer
6c9387d276
Add tests for recognizing Windows cmd or powershell environment in updateProcessEnv
2018-02-22 13:34:08 +02:00
Max Brunsfeld
2100f90cf4
Provide a default scope descriptor if language mode doesn't provide them
2018-02-21 14:55:58 -08:00
Jordan Eldredge
42e3a5015d
Improve spec spacing
2018-02-21 13:14:45 -08:00
Max Brunsfeld
ea8165a1ca
Make TreeSitterLanguageMode.scopeDescriptorForPosition accept arrays
...
Fixes #16808
2018-02-21 10:16:50 -08:00