Commit Graph

2201 Commits

Author SHA1 Message Date
Kevin Sawicki
23fc73733f Rename AsteriskMatcher to TrueMatcher 2013-04-19 10:58:35 -07:00
Kevin Sawicki
6bda6e7644 Update remaining Asterix to Asterisk 2013-04-19 10:58:35 -07:00
Kevin Sawicki & Nathan Sobo
faac67c88e Rename asterix to asterisk 2013-04-19 10:58:35 -07:00
Kevin Sawicki & Nathan Sobo
1f4febcfaf Ignore child captures of captures with patterns 2013-04-19 10:58:35 -07:00
Kevin Sawicki & Nathan Sobo
b37468871c Use TextMateGrammar.tokenizeLine() to create capture rule tokens 2013-04-19 10:58:35 -07:00
Kevin Sawicki
c63834924a Support patterns included in captures
Previously only the capture's name was considered when processing
tokens for capture indices.

Now the capture's patterns are matched against the captured region
if they exist.
2013-04-19 10:58:35 -07:00
Kevin Sawicki
1091875ca1 Index into array instead of removing matchers 2013-04-19 10:58:35 -07:00
Kevin Sawicki
66b80d9682 💄 2013-04-19 10:58:35 -07:00
Kevin Sawicki
d5723aa18d Port scope selector matchers to CoffeeScript 2013-04-19 10:58:35 -07:00
Kevin Sawicki & Nathan Sobo
1dffb9237a Use the earliest result when both injection and non-injection patterns match 2013-04-19 10:58:34 -07:00
Kevin Sawicki & Nathan Sobo
0a92f68aac Remove unused variable 2013-04-19 10:58:34 -07:00
Kevin Sawicki
40939ab984 Remove unused injected variable 2013-04-19 10:58:34 -07:00
Kevin Sawicki
da898a5344 Cache scanners used in injections 2013-04-19 10:58:34 -07:00
Kevin Sawicki
88ebad2b7a Add Injections helper class 2013-04-19 10:58:34 -07:00
Kevin Sawicki
c9edc3b2d6 Add createScanner() helper to Rule 2013-04-19 10:58:34 -07:00
Kevin Sawicki
1407f6c1f0 Add getRegex() helper to Pattern 2013-04-19 10:58:34 -07:00
Kevin Sawicki
3542e879bc Set injected to false by default 2013-04-19 10:58:34 -07:00
Kevin Sawicki
c2eca1ff99 Add initial support for injection grammars
Build scope selectors and patterns when setting up the grammar
for all entries under the grammar's injection object.

Include the injection patterns in the scanner when the injection's
scope selector matches the current rule stack.
2013-04-19 10:58:34 -07:00
Kevin Sawicki
2568aa086e 💄 2013-04-19 10:58:34 -07:00
Kevin Sawicki
7cb8850ed2 Expect single scope as parameter to scope matcher 2013-04-19 10:58:34 -07:00
Kevin Sawicki
beeaa01d22 Support space-separated scopes in selector parser 2013-04-19 10:58:33 -07:00
Kevin Sawicki
3e5448b698 Add initial TextMate scope selector parser 2013-04-19 10:58:33 -07:00
Kevin Sawicki
a149357bd5 💄 2013-04-18 20:21:34 -07:00
Kevin Sawicki
848761710e 💄 2013-04-18 20:16:49 -07:00
Garen Torikian
53f03d1b30 Missed a spot 2013-04-18 20:10:30 -07:00
Garen Torikian
5ee388cede Get it to a proper 80% 2013-04-18 18:50:22 -07:00
Garen Torikian
14a0010517 Keep updating Internal hiding 2013-04-18 14:58:19 -07:00
Garen Torikian
e478d9b7a0 Add more corrections off of the #Internal syntax 2013-04-18 13:38:26 -07:00
Garen Torikian
a50cfa26cc Updates for new biscotto 2013-04-18 13:05:40 -07:00
Garen Torikian
130baf2235 Merge branch 'master' into api/docs 2013-04-17 16:08:18 -07:00
Kevin Sawicki
379bf54c40 Don't set widthChanged handler on gutter
The gutter now uses flex box so the width is no longer explicitly
set based on the number of lines.
2013-04-17 09:01:27 -07:00
Kevin Sawicki
8c138ebd04 Remove unused ivar 2013-04-16 17:47:30 -07:00
Kevin Sawicki & Nathan Sobo
807c6878c1 Set width of hidden input to 1 pixel
Previously the width was set to the width of a single character which
caused issues if the char width was currently zero and since the hidden
input no longer has padding or border the width of the input would end
up being zero which would prevent it from gaining focus.
2013-04-16 15:20:16 -07:00
Corey Johnson
3c95fbd72c Remove redundant conditional 2013-04-16 14:23:42 -07:00
Corey Johnson & Nathan Sobo
f21571eab1 Rename isFirstPoint to isHead in marker.updatePosition 2013-04-16 14:23:42 -07:00
Kevin Sawicki & Nathan Sobo
a1cab1a692 Log instead of re-throwing less parser errors 2013-04-16 12:10:07 -07:00
Corey Johnson & Nathan Sobo
8f0bffc589 Don't set height on mini editor explicitly. Let 'height: auto' do it.
We're not sure why this is here, and can't see a problem when we remove
it.
2013-04-15 20:45:55 -06:00
Nathan Sobo
39f920165d Report errors with no stack when loading packages 2013-04-15 20:45:55 -06:00
Nathan Sobo
91cbcf0073 Update editor lines & cursors to not use bootstrap-styled pre element 2013-04-15 20:45:55 -06:00
Nathan Sobo
738fc31f56 Add twitter bootstrap submodule and put it on less search path 2013-04-15 20:45:54 -06:00
Nathan Sobo
bbf7c6ca1b Replace requireStylesheet calls w/ @import directives in atom.less 2013-04-15 20:45:54 -06:00
Nathan Sobo
2f008aa886 Use less NPM module instead of vendored less
We're currently using nathansobo's fork, which doesn't depend on
`window` being undefined to operate in Node mode.
2013-04-15 20:45:54 -06:00
Garen Torikian
4c56e8bb57 Merge branch 'master' into api/docs 2013-04-14 09:43:06 -07:00
Garen Torikian
8bd02358d2 Should I regret a lack of better commit messages? 2013-04-12 22:35:54 -05:00
Cheng Zhao
558e41f740 Make main window restart renderer process when reloaded for 4 times.
Fix #495.
2013-04-13 10:24:58 +08:00
Garen Torikian
37b3784129 Finish Selections, add Fold 2013-04-12 21:10:57 -05:00
Garen Torikian
f3b7874007 Get a good chunk of Selection} 2013-04-12 15:54:56 -05:00
Garen Torikian
286e70cc57 Hella Editor updates 2013-04-12 15:17:11 -05:00
Garen Torikian
0c5e38680d Internalize a bunch of methods 2013-04-12 14:37:21 -05:00
Garen Torikian
6963503d6f Finish config 2013-04-12 14:23:43 -05:00