Commit graph

5,265 commits

Author SHA1 Message Date
Harutyun Amirjanyan
5b3e1ca29d Merge pull request #1750 from rmsmith/master
dart_highlight_rules : add 'with' to `keywordDeclaration`
2014-01-04 05:50:00 -08:00
aldendaniels
8624ab8dcb Stop using splice.appy() in ace
Since .apply() can't handle more than 65535 parameters, splice.apply()
is brittle. It's also hard to read. This replaces splice.apply() calls
throughout ace code with lang.spliceIntoArray().
2014-01-04 01:59:30 -06:00
aldendaniels
b503e65e03 Break on applyDelta into its own module
This makes it possible to break out helper functions without exposing
them to the rest of the document class. Also, long term, we may want to
have a stand-alone test suite for applyDelta, so it makes sense in its
own file.

All other changes involve syntax corrections (some syntax issues were
mine, others pre-existed) to make the documentation compilation work.
2014-01-03 14:59:22 -06:00
rmsmith
c40bf3b172 dart_highlight_rules : add 'with' to keywordDeclaration
'with' clauses are used for mixin application in Dart, e.g:

`class ToggleButton extends Button with Toggleable { ... }`
2014-01-03 21:04:23 +02:00
Ruben Daniels
5733f006a8 Merge pull request #1740 from ajaxorg/c9
sync with cloud9
2014-01-02 11:01:42 -08:00
Harutyun Amirjanyan
7bcf64401f Merge pull request #1747 from hartman/themelistfix
Repair label of themes in themelist.
2014-01-02 04:23:39 -08:00
Derk-Jan Hartman
8f109ea371 Repair label of themes in themelist.
This was broken after c563f15e93
2014-01-02 13:04:24 +01:00
aldendaniels
612478e39f Speed up single-line deltas
2e6f12725b slowed down the application of
deltas that only affect a single line. The slow-down, though trivial for
a single line, is significant for operations than separately modify
thousands of rows (such as indenting a large document).

This commit speeds up single-line deltas by avoiding unnecessary calls
to splitLine() and joinLineWithNext().
2014-01-01 14:45:54 -06:00
aldendaniels
810e196cc6 Use console.warn for deprecated methods
console.warn makes better sense than console.log and matches similar
warnings in ace (see gutter.js for example).
2014-01-01 12:06:19 -06:00
aldendaniels
026af74016 Fix render bugs
Both were introduced in 2e6f12725b.
2014-01-01 12:04:12 -06:00
aldendaniels
27768230c8 Maintain public API and update coding convention
This seeks to keep the public API in-tact while improving method names
within ace by keeping the old methods as wrappers around the new
better-named methods.

For example, document.insert() now simply calls document.insertText()
and warns the caller via a console.log() that they are using a
deprecated method.

I've also updated the coding style of my changes (where I noticed
discrepancies) to match the rest of Ace.
2014-01-01 11:05:27 -06:00
aldendaniels
2e6f12725b #1744: Refactor document delta handling
Refactor delta handling code to:

- Combine the "insertText" and "insertLines" delta types into a single
"insert" delta type

- Combine the "removeText" and "removeLines" delta types into a single
"remove" delta type

- Make all document mutations in a single applyDelta function.

- Add basic delta validation (more needed . . . see TODOs)

- Rework anchor logic to handle new delta types (also simplified)

- Rename "insert()" to "insertText()" and "remove()" to "removeText()"

- Rename "insertLines()" to "insertFullLines()" and "removeLines()" to
"removeFullLines()"

See related issue for more information. All tests are passing and the
changes appear functional under preliminary testing, but careful review
and testing will be necessary.
2014-01-01 00:41:45 -06:00
nightwing
ccc7d6dda8 add more sites 2013-12-31 16:17:01 +04:00
Harutyun Amirjanyan
a9d194894e Merge pull request #1742 from hartman/commas
Remove trailing comma's, which break scripts in IE7
2013-12-31 04:16:32 -08:00
Derk-Jan Hartman
1240a04fff Remove trailing comma's, which break scripts in IE7 2013-12-31 10:12:34 +01:00
DanyaPostfactum
0b1630d6fa Refactor tooltip to separate class. 2013-12-30 20:13:00 +10:00
nightwing
425404ff29 fix #1737 reset padding only if previous theme had custom padding 2013-12-30 02:05:57 +04:00
nightwing
3cc3043951 update js highlighter test 2013-12-30 01:56:58 +04:00
nightwing
9a5bd3cd65 include error_marker addon in the build 2013-12-30 01:42:12 +04:00
Harutyun Amirjanyan
6e46195102 Merge pull request #1728 from desoi/master
Updated keywords and functions for PostgreSQL 9.3. Added sub-mode support for JavaScript and Json.
2013-12-29 13:37:10 -08:00
John DeSoi
48cd7f55dc Updated keywords and functions for PostgreSQL 9.3. Added sub-mode support for JavaScript and Json. 2013-12-29 14:16:38 -06:00
nightwing
edee507fd9 update site 2013-12-29 21:13:44 +04:00
nightwing
714e1a592c fix resize issues 2013-12-29 20:07:08 +04:00
nightwing
90b2a6cd77 fix multiselect mouse interaction issues 2013-12-29 20:05:23 +04:00
nightwing
37b3dc1efd tweak modes 2013-12-29 20:03:08 +04:00
nightwing
b6a4a34fd2 togglecomment should not scroll if part of the selection is visible 2013-12-29 20:02:14 +04:00
nightwing
5b151a3db4 fix scrolling speed on firefox ux 2013-12-29 19:59:16 +04:00
nightwing
3f7f325777 return removed folds from removeFolds 2013-12-29 19:57:49 +04:00
nightwing
6e254f25a1 fix wrap option getter 2013-12-29 19:57:00 +04:00
nightwing
4c4ab09870 add goToNextError command 2013-12-29 19:56:29 +04:00
Lennart Kats
c612dac355 Merge pull request #1723 from ajaxorg/misc
fix several small bugs
2013-12-25 07:11:00 -08:00
Lennart Kats
890fd39c92 Merge pull request #1725 from ajaxorg/double_tap
Double tap regression
2013-12-25 02:09:58 -08:00
Lennart Kats
eda5eaba39 Merge pull request #1715 from ajaxorg/velocity_snippets
Support loading snippets for mixed modes
2013-12-25 02:04:31 -08:00
Lennart Kats
191a79245f Merge pull request #1703 from ajaxorg/highlighting/mixed
Do not loose currentState if tokenizer uses combination of next and push
2013-12-25 02:03:04 -08:00
Harutyun Amirjanyan
92dba7d44c Merge pull request #1730 from danyaPostfactum/autoinsert
Add autoinsert feature to the completer.
2013-12-23 03:27:09 -08:00
DanyaPostfactum
ff42a13c4f Add autoinsert feature to the completer. 2013-12-23 02:52:25 +10:00
nightwing
b6a3a15232 add a test 2013-12-20 18:12:33 +04:00
nightwing
c01725184e remove setTimeout from startSelect
fixes #956: double tap regression
2013-12-20 17:18:34 +04:00
nightwing
15dd2082f6 cleanup 2013-12-20 15:14:35 +04:00
nightwing
3a864c6056 add support for inline mode in php worker 2013-12-17 00:04:21 +04:00
nightwing
10e2c3049c add options for theme and mode 2013-12-15 21:20:11 +04:00
nightwing
6285bf5d5a update cssLint and coffee 2013-12-15 21:18:13 +04:00
nightwing
b7ee15f5d9 fix bug with fixedWidth gutter + firstLineNumber 2013-12-15 02:50:48 +04:00
nightwing
133db3cfe0 fix #1711 Double click on foldWidgets region can paint whole gutter in red. 2013-12-14 23:52:01 +04:00
nightwing
45c4bdcb2e disable invalid class on ampersands
fixes #1655
2013-12-14 19:44:44 +04:00
nightwing
61591eee5d add tests 2013-12-14 19:41:44 +04:00
nightwing
869e1f86aa cleanup d mode 2013-12-14 19:37:24 +04:00
Harutyun Amirjanyan
a6c21c6761 Merge pull request #1694 from robik/d-lang-support
Improved D Language mode
2013-12-14 07:29:25 -08:00
Harutyun Amirjanyan
3b96539874 Merge pull request #1696 from danyaPostfactum/refactor/scrollbar
Refactor ScrollBarV and ScrollBarH classes
2013-12-14 06:25:48 -08:00
DanyaPostfactum
5affb58e40 Add forgotten css overflow:scroll to scrollbars 2013-12-13 16:45:20 +10:00