Commit Graph

2972 Commits

Author SHA1 Message Date
Corey Johnson
92be14d9fa Snippets are not auto-indented when they are inserted. 2012-08-09 16:21:04 -07:00
Corey Johnson
65d40557ff InsertText takes an option to turn autoIndent off 2012-08-09 16:20:45 -07:00
Corey Johnson
cd8e6a7f20 Don't auto-indent ff a grammar doesn't have an indent/outdent regex 2012-08-09 16:04:23 -07:00
Corey Johnson
956cffe225 Add temp styling for folds 2012-08-09 15:18:37 -07:00
Corey Johnson
7477511a9f Create empty token on empty lines 2012-08-09 15:17:46 -07:00
Corey Johnson
c1bd922d89 💄 2012-08-09 15:17:01 -07:00
Corey Johnson
634bebd207 Toggling comments adjusts selection's start and end columns 2012-08-09 14:38:16 -07:00
Corey Johnson
34934d58f9 previousNonBlankRow returns null if passed row 0 2012-08-09 14:19:12 -07:00
Corey Johnson
9e53751717 Revert "Add setTextInBufferRange to edit session"
This reverts commit ea86ec401b.
2012-08-09 13:25:53 -07:00
Corey Johnson
cc5ee48470 Auto-outdent lines correctly 2012-08-09 13:10:37 -07:00
Corey Johnson & Nathan Sobo
e8aaec43f7 WIP: Reworking auto-indent/outdent logic 2012-08-09 12:57:47 -06:00
Corey Johnson & Nathan Sobo
ad4b3db439 Add OnigRegExp.test 2012-08-09 12:57:20 -06:00
Corey Johnson
9b0a00a478 Remove Ace from vendor directory.
Adieu, adieu, parting is such sweet sorrow.
2012-08-09 10:52:40 -07:00
Corey Johnson
fae452770b Language mode no longer uses Ace for anything 2012-08-09 10:49:54 -07:00
Corey Johnson
19511fe8b8 Selections are restored to their original ranges after toggling comments. 2012-08-09 10:46:54 -07:00
Corey Johnson
c95ca04340 Use TextMate to toggle comments 2012-08-09 10:33:46 -07:00
Corey Johnson
92d706b52b Add class method lineCOmmentStringForScope to TextMateBundle 2012-08-09 10:33:31 -07:00
Corey Johnson
ea86ec401b Add setTextInBufferRange to edit session 2012-08-09 10:33:25 -07:00
Nathan Sobo
34cac4336b Order selection regions behind editor's text
The key here is to force editor's overall z-index to be 0 in order to establish a *local stacking context*. Then we can put the lines at z-index 1 and the selection at z-index -1  within that context without them overlapping elements outside of the editor.
2012-08-08 22:35:57 -06:00
Nathan Sobo
4109669284 Bold and italic fonts hose our width calculations 2012-08-08 22:31:33 -06:00
Nathan Sobo
3da19cd93b WIP: Style in a manner compatible w/ TextMate themes 2012-08-08 22:17:00 -06:00
Corey Johnson & Nathan Sobo
fa65510287 Use IR_Black as the default color scheme 2012-08-08 17:50:53 -07:00
Corey Johnson & Nathan Sobo
7fe6a05594 Folding no longer relies on Ace.
Indentation is used to determine foldable regions, if the last line matches TextMate's foldEndRegex it is included in the foldable region.
2012-08-08 17:42:11 -07:00
Corey Johnson & Nathan Sobo
926a44fba8 Remove unused code 2012-08-08 17:42:11 -07:00
Corey Johnson & Nathan Sobo
c7586a0e97 Rename matchingCharachters to pairedCharachters 2012-08-08 17:42:10 -07:00
Nathan Sobo
8c5e77d325 Move theme activation to RootView 2012-08-08 17:04:54 -06:00
Nathan Sobo
c8154e4e8c Use Twilight theme stylesheet based on TextMateTheme 2012-08-08 16:55:34 -06:00
Nathan Sobo
2df05e235a Break out window.applyStylesheet from window.requireStylesheet
This will be useful in applying generated stylesheets associated with themes.
2012-08-08 16:09:23 -06:00
Corey Johnson & Nathan Sobo
3376dead06 fix broken spec 2012-08-08 14:54:11 -07:00
Corey Johnson & Nathan Sobo
8563b47dfd Merge branch 'textmate' of github.com:github/atom into textmate 2012-08-08 15:52:27 -06:00
Corey Johnson & Nathan Sobo
a8c19b1692 Fix OnigRegExp spec 2012-08-08 14:52:14 -07:00
Corey Johnson & Nathan Sobo
2945576cb7 Include themes directory in bundle 2012-08-08 14:14:20 -07:00
Corey Johnson & Nathan Sobo
221135a290 Fix broken benchmark 2012-08-08 13:19:28 -06:00
Corey Johnson & Nathan Sobo
2a945838f5 Return absolute minimum capture data from OnigRegExp 2012-08-08 12:13:54 -07:00
Corey Johnson & Nathan Sobo
93f21207ab Un-f benchmark suite 2012-08-08 11:05:01 -06:00
Corey Johnson & Nathan Sobo
472e5348e2 Update TextMateGrammar to use optimized array-based capture trees 2012-08-08 11:04:36 -06:00
Corey Johnson & Nathan Sobo
fd295faa44 OnigRegExp.getCaptureTree only returns capture tree (no capture text) 2012-08-08 11:04:13 -06:00
Corey Johnson & Nathan Sobo
e0516def80 Prioritize getCaptureTree in conditionals for tiny drops of speed 2012-08-08 10:16:36 -06:00
Nathan Sobo
f1438f2806 Optimization: Return only arrays from getCaptureTree
Creating objects and setting key-value pairs is more expensive than creating arrays with numeric indices. So this squeezes a bit more performance.
2012-08-08 09:57:42 -06:00
Nathan Sobo
c6c4d6413e Optimization attempt: Captures contain start/end position instead of text 2012-08-08 09:11:32 -06:00
Nathan Sobo
f559ad73a7 Make grammar handle lines that don't match *any* of the current rule's patterns
It's possible to get a match based on a lookahead, but not actually have any non-empty capture groups. This should be considered a failed match.
2012-08-08 08:59:13 -06:00
Corey Johnson & Nathan Sobo
827b3e29d3 Implement OnigRegExp.getCaptureTree natively 2012-08-07 16:20:02 -07:00
Corey Johnson & Nathan Sobo
088b1a1398 💄 2012-08-07 16:18:16 -07:00
Nathan Sobo
bfb559e1c5 WIP: Native version of OnigRegExp.getCaptureTree. Not wired up yet or tested. 2012-08-07 14:46:24 -06:00
Nathan Sobo
33b1c47844 Copy bundles directory in Rakefile copy task 2012-08-07 14:45:25 -06:00
Corey Johnson & Nathan Sobo
5188d75772 Add benchmark for OnigRegExp 2012-08-07 13:09:01 -06:00
Corey Johnson & Nathan Sobo
39dbcb15b7 Include end pattern in compiled regexes. Also Compile regexes for pushed rules. 2012-08-07 12:07:24 -06:00
Nathan Sobo
d520d6c859 WIP: Optimization: compile a single regex for each grammar rule
We compile a giant regex out of all the individual regexes for each pattern by or'ing together a capture group for each one. Then we use the index of the matched capture group to determine which pattern actually matched, and adjust the capture indexes of the subtree to make it appear to start from index 0, so the capture indices on the pattern align properly. There is still broken-ness on more complex patterns, but basic patterns and patterns w/ captures work.
2012-08-06 18:32:55 -06:00
Nathan Sobo
a02af2a51f Add benchmark for TokenizedBuffer w/ new TextMateGrammar tokenization. SO SLOW! 2012-08-06 18:28:51 -06:00
Nathan Sobo
6878d19a6a OnigRegExp.getCaptureTree does not include empty child captures 2012-08-06 18:27:39 -06:00