Commit Graph

14 Commits

Author SHA1 Message Date
Corey Johnson & Nathan Sobo
a589557aaa Ignore bracket matching when there are multiple cursors 2012-08-01 09:47:12 -07:00
Corey Johnson & Nathan Sobo
97b492edfc When an identical closing bracket is inserted, don't insert a new character and move cursor to the right. 2012-08-01 09:33:42 -07:00
Nathan Sobo
dc662ed071 When ( [ { ' or " is inserted, insert the matching character after the cursor 2012-07-27 13:08:43 -06:00
Nathan Sobo
87f4d8c6e9 Upon inserting '(', insert matching ')' character after cursor 2012-07-27 13:02:26 -06:00
Nathan Sobo
3516dea210 Introduce LanguageMode wrapper for Ace modes as a foundation of our own modes
LanguageMode is the central point for all language-specific behavior associated with an EditSession. There is one LanguageMode instance per EditSession. LanguageMode has access to the EditSession and its TokenizedBuffer, and in reverse the EditSession, DisplayBuffer, and TokenizedBuffer also make use of LanguageMode. This is a bit incestuous, but I think it's okay because you can think of LanguageMode as a swappable strategy object that governs language-specific aspects of that constellation of objects.
2012-07-27 12:30:06 -06:00
Corey Johnson & Nathan Sobo
291886b4b3 Rename LanguageMode to TokenizedBuffer 2012-06-14 11:02:52 -06:00
Nathan Sobo
ede9309a80 💄 2012-06-13 20:09:33 -06:00
Nathan Sobo
e444ba193c Merge all ace adaptors into a single AceAdaptor class 2012-06-13 18:31:03 -06:00
Nathan Sobo
d04d4e22a2 Move autoOutdent code to LanguageMode 2012-06-13 18:08:08 -06:00
Nathan Sobo
fc72f39342 Move autoIndent code into LanguageMode 2012-06-13 16:12:51 -06:00
Nathan Sobo
4149cf11de Determine which ace mode to require inside LanguageMode
instead of calling Buffer.getMode, which I axe soon
2012-06-13 15:48:13 -06:00
Nathan Sobo
591a294e2e Absorb FoldSuggester into LanguageMode 2012-06-13 15:44:40 -06:00
Nathan Sobo
49e0e2095a Absorb line commenting into LanguageMode 2012-06-13 15:36:35 -06:00
Nathan Sobo
f1397db60b Rename Highlighter -> LanguageMode 2012-06-13 15:21:44 -06:00