Commit Graph

7126 Commits

Author SHA1 Message Date
Kevin Sawicki
62c94959e1 Move injections spec to TextMateGrammar spec
This spec was previously in the TokenizeBuffer spec which
required having a PHP fixture and setting up an edit session
to verify a line could be tokenized which was unnecessary.
2013-04-19 10:58:35 -07:00
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
faca7f091a Include PEG js bundle 2013-04-19 10:58:35 -07:00
Kevin Sawicki
9489ec6787 Add specs for & selectors 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
ed9f46b39f Upgrade TextMate PHP bundle to current master 2013-04-19 10:58:33 -07:00
Kevin Sawicki
76484acb21 Call atom.show() from a setTimeout()
The window was previously flashing white if atom.show() was called
directly after window.startup()

Wrapping the call in a setTimeout with a zero delay seems to prevent
the white flash and the perceived amount of time to display the contents
appears to be the same.
2013-04-19 10:15:50 -07:00
Kevin Sawicki
36768251f8 Default ranges to empty array when no edit session
Previously an exception would be thrown if a '/' pattern was evaluated
when there was no active edit session.
2013-04-19 10:05:48 -07:00
Kevin Sawicki
b4ab10403d Use lower case submodule paths
Lowercase the Go and Mustache bundle paths to be
consistent with all others.
2013-04-18 21:34:31 -07:00
Kevin Sawicki
086c7f7133 Run biscotto directly through coffee
CI had issues finding coffee when exec'ing directly.
2013-04-18 21:08:33 -07:00
Kevin Sawicki
4b48e07f83 Specify cwd instead of cd'ing 2013-04-18 20:41:17 -07:00
Kevin Sawicki
ca1177efea Ignore doc/assets 2013-04-18 20:40:48 -07:00
Kevin Sawicki
a149357bd5 💄 2013-04-18 20:21:34 -07:00
Kevin Sawicki
b5474790cb Remove unused imports 2013-04-18 20:18:37 -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
dcbd6f07e5 Merge pull request #498 from github/api/docs
Add API documentation for src/app
2013-04-18 18:58:41 -07:00
Garen Torikian
42290e87f8 80 is good. 2013-04-18 18:51:46 -07:00
Garen Torikian
df528f954b Bump biscotto one last time 2013-04-18 18:51:23 -07:00
Garen Torikian
5ee388cede Get it to a proper 80% 2013-04-18 18:50:22 -07:00
Garen Torikian
5d7b4ec04b Bump biscotto again 2013-04-18 15:24:19 -07:00
Garen Torikian
cabee75f8a 💄 2013-04-18 15:02:22 -07:00
Garen Torikian
87f991a35d Remove package doc for now 2013-04-18 15:01:52 -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
0acccc383e Remove test for folder not documented 2013-04-18 13:24:55 -07:00
Garen Torikian
3303f5a741 Bump biscotto 2013-04-18 13:05:46 -07:00
Garen Torikian
a50cfa26cc Updates for new biscotto 2013-04-18 13:05:40 -07:00
Garen Torikian
4d2b78b1f8 Bump biscotto version 2013-04-18 11:22:39 -07:00
Garen Torikian
9f6ef4beec Merge branch 'master' into api/docs 2013-04-18 11:20:23 -07:00