|
Karsten Hopp |
f410e2 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
f410e2 |
Subject: Patch 7.3.256
|
|
Karsten Hopp |
f410e2 |
Fcc: outbox
|
|
Karsten Hopp |
f410e2 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
f410e2 |
Mime-Version: 1.0
|
|
Karsten Hopp |
f410e2 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
f410e2 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
f410e2 |
------------
|
|
Karsten Hopp |
f410e2 |
|
|
Karsten Hopp |
f410e2 |
Patch 7.3.256
|
|
Karsten Hopp |
f410e2 |
Problem: Javascript indenting not sufficiently tested.
|
|
Karsten Hopp |
f410e2 |
Solution: Add more tests. (Luc Deschenaux) Mark the lines that are indented
|
|
Karsten Hopp |
f410e2 |
wrong.
|
|
Karsten Hopp |
f410e2 |
Files: src/testdir/test3.in, src/testdir/test3.ok
|
|
Karsten Hopp |
f410e2 |
|
|
Karsten Hopp |
f410e2 |
|
|
Karsten Hopp |
f410e2 |
*** ../vim-7.3.255/src/testdir/test3.in 2011-07-15 14:12:25.000000000 +0200
|
|
Karsten Hopp |
f410e2 |
--- src/testdir/test3.in 2011-07-15 21:05:49.000000000 +0200
|
|
Karsten Hopp |
f410e2 |
***************
|
|
Karsten Hopp |
f410e2 |
*** 1592,1598 ****
|
|
Karsten Hopp |
f410e2 |
|
|
Karsten Hopp |
f410e2 |
|
|
Karsten Hopp |
f410e2 |
STARTTEST
|
|
Karsten Hopp |
f410e2 |
! :set cino=J1
|
|
Karsten Hopp |
f410e2 |
/^JSSTART
|
|
Karsten Hopp |
f410e2 |
=/^JSEND
|
|
Karsten Hopp |
f410e2 |
ENDTEST
|
|
Karsten Hopp |
f410e2 |
--- 1592,1598 ----
|
|
Karsten Hopp |
f410e2 |
|
|
Karsten Hopp |
f410e2 |
|
|
Karsten Hopp |
f410e2 |
STARTTEST
|
|
Karsten Hopp |
f410e2 |
! :set cino=j1,J1
|
|
Karsten Hopp |
f410e2 |
/^JSSTART
|
|
Karsten Hopp |
f410e2 |
=/^JSEND
|
|
Karsten Hopp |
f410e2 |
ENDTEST
|
|
Karsten Hopp |
f410e2 |
***************
|
|
Karsten Hopp |
f410e2 |
*** 1613,1618 ****
|
|
Karsten Hopp |
f410e2 |
--- 1613,1757 ----
|
|
Karsten Hopp |
f410e2 |
JSEND
|
|
Karsten Hopp |
f410e2 |
|
|
Karsten Hopp |
f410e2 |
STARTTEST
|
|
Karsten Hopp |
f410e2 |
+ :set cino=j1,J1
|
|
Karsten Hopp |
f410e2 |
+ /^JSSTART
|
|
Karsten Hopp |
f410e2 |
+ =/^JSEND
|
|
Karsten Hopp |
f410e2 |
+ ENDTEST
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+ JSSTART
|
|
Karsten Hopp |
f410e2 |
+ var foo = [
|
|
Karsten Hopp |
f410e2 |
+ 1, // indent 8 more
|
|
Karsten Hopp |
f410e2 |
+ 2,
|
|
Karsten Hopp |
f410e2 |
+ 3
|
|
Karsten Hopp |
f410e2 |
+ ]; // indent 8 less
|
|
Karsten Hopp |
f410e2 |
+ JSEND
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+ STARTTEST
|
|
Karsten Hopp |
f410e2 |
+ :set cino=j1,J1
|
|
Karsten Hopp |
f410e2 |
+ /^JSSTART
|
|
Karsten Hopp |
f410e2 |
+ =/^JSEND
|
|
Karsten Hopp |
f410e2 |
+ ENDTEST
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+ JSSTART
|
|
Karsten Hopp |
f410e2 |
+ function bar() {
|
|
Karsten Hopp |
f410e2 |
+ var foo = [
|
|
Karsten Hopp |
f410e2 |
+ 1,
|
|
Karsten Hopp |
f410e2 |
+ 2,
|
|
Karsten Hopp |
f410e2 |
+ 3
|
|
Karsten Hopp |
f410e2 |
+ ]; // indent 16 less
|
|
Karsten Hopp |
f410e2 |
+ }
|
|
Karsten Hopp |
f410e2 |
+ JSEND
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+ STARTTEST
|
|
Karsten Hopp |
f410e2 |
+ :set cino=j1,J1
|
|
Karsten Hopp |
f410e2 |
+ /^JSSTART
|
|
Karsten Hopp |
f410e2 |
+ =/^JSEND
|
|
Karsten Hopp |
f410e2 |
+ ENDTEST
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+ JSSTART
|
|
Karsten Hopp |
f410e2 |
+ (function($){
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+ var class_name='myclass';
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+ function private_method() {
|
|
Karsten Hopp |
f410e2 |
+ }
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+ var public_method={
|
|
Karsten Hopp |
f410e2 |
+ method: function(options,args){
|
|
Karsten Hopp |
f410e2 |
+ private_method();
|
|
Karsten Hopp |
f410e2 |
+ }
|
|
Karsten Hopp |
f410e2 |
+ }
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+ function init(options) {
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+ $(this).data(class_name+'_public',$.extend({},{
|
|
Karsten Hopp |
f410e2 |
+ foo: 'bar',
|
|
Karsten Hopp |
f410e2 |
+ bar: 2, // indent 8 more
|
|
Karsten Hopp |
f410e2 |
+ foobar: [ // indent 8 more
|
|
Karsten Hopp |
f410e2 |
+ 1, // indent 8 more
|
|
Karsten Hopp |
f410e2 |
+ 2, // indent 16 more
|
|
Karsten Hopp |
f410e2 |
+ 3 // indent 16 more
|
|
Karsten Hopp |
f410e2 |
+ ],
|
|
Karsten Hopp |
f410e2 |
+ callback: function(){ // indent 8 more
|
|
Karsten Hopp |
f410e2 |
+ return true; // indent 8 more
|
|
Karsten Hopp |
f410e2 |
+ } // indent 8 more
|
|
Karsten Hopp |
f410e2 |
+ }, options||{}));
|
|
Karsten Hopp |
f410e2 |
+ }
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+ $.fn[class_name]=function() {
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+ var _arguments=arguments;
|
|
Karsten Hopp |
f410e2 |
+ return this.each(function(){
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+ var options=$(this).data(class_name+'_public');
|
|
Karsten Hopp |
f410e2 |
+ if (!options) {
|
|
Karsten Hopp |
f410e2 |
+ init.apply(this,_arguments);
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+ } else {
|
|
Karsten Hopp |
f410e2 |
+ var method=public_method[_arguments[0]];
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+ if (typeof(method)!='function') {
|
|
Karsten Hopp |
f410e2 |
+ console.log(class_name+' has no method "'+_arguments[0]+'"');
|
|
Karsten Hopp |
f410e2 |
+ return false;
|
|
Karsten Hopp |
f410e2 |
+ }
|
|
Karsten Hopp |
f410e2 |
+ _arguments[0]=options;
|
|
Karsten Hopp |
f410e2 |
+ method.apply(this,_arguments);
|
|
Karsten Hopp |
f410e2 |
+ }
|
|
Karsten Hopp |
f410e2 |
+ });
|
|
Karsten Hopp |
f410e2 |
+ }
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+ })(jQuery);
|
|
Karsten Hopp |
f410e2 |
+ JSEND
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+ STARTTEST
|
|
Karsten Hopp |
f410e2 |
+ :set cino=j1,J1
|
|
Karsten Hopp |
f410e2 |
+ /^JSSTART
|
|
Karsten Hopp |
f410e2 |
+ =/^JSEND
|
|
Karsten Hopp |
f410e2 |
+ ENDTEST
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+ JSSTART
|
|
Karsten Hopp |
f410e2 |
+ function init(options) {
|
|
Karsten Hopp |
f410e2 |
+ $(this).data(class_name+'_public',$.extend({},{
|
|
Karsten Hopp |
f410e2 |
+ foo: 'bar',
|
|
Karsten Hopp |
f410e2 |
+ bar: 2,
|
|
Karsten Hopp |
f410e2 |
+ foobar: [
|
|
Karsten Hopp |
f410e2 |
+ 1, // indent 8 more
|
|
Karsten Hopp |
f410e2 |
+ 2, // indent 8 more
|
|
Karsten Hopp |
f410e2 |
+ 3 // indent 8 more
|
|
Karsten Hopp |
f410e2 |
+ ],
|
|
Karsten Hopp |
f410e2 |
+ callback: function(){
|
|
Karsten Hopp |
f410e2 |
+ return true;
|
|
Karsten Hopp |
f410e2 |
+ }
|
|
Karsten Hopp |
f410e2 |
+ }, options||{}));
|
|
Karsten Hopp |
f410e2 |
+ }
|
|
Karsten Hopp |
f410e2 |
+ JSEND
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+ STARTTEST
|
|
Karsten Hopp |
f410e2 |
+ :set cino=j1,J1
|
|
Karsten Hopp |
f410e2 |
+ /^JSSTART
|
|
Karsten Hopp |
f410e2 |
+ =/^JSEND
|
|
Karsten Hopp |
f410e2 |
+ ENDTEST
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+ JSSTART
|
|
Karsten Hopp |
f410e2 |
+ (function($){
|
|
Karsten Hopp |
f410e2 |
+ function init(options) {
|
|
Karsten Hopp |
f410e2 |
+ $(this).data(class_name+'_public',$.extend({},{
|
|
Karsten Hopp |
f410e2 |
+ foo: 'bar',
|
|
Karsten Hopp |
f410e2 |
+ bar: 2, // indent 8 more
|
|
Karsten Hopp |
f410e2 |
+ foobar: [ // indent 8 more
|
|
Karsten Hopp |
f410e2 |
+ 1, // indent 8 more
|
|
Karsten Hopp |
f410e2 |
+ 2, // indent 16 more
|
|
Karsten Hopp |
f410e2 |
+ 3 // indent 16 more
|
|
Karsten Hopp |
f410e2 |
+ ],
|
|
Karsten Hopp |
f410e2 |
+ callback: function(){ // indent 8 more
|
|
Karsten Hopp |
f410e2 |
+ return true; // indent 8 more
|
|
Karsten Hopp |
f410e2 |
+ } // indent 8 more
|
|
Karsten Hopp |
f410e2 |
+ }, options||{}));
|
|
Karsten Hopp |
f410e2 |
+ }
|
|
Karsten Hopp |
f410e2 |
+ })(jQuery);
|
|
Karsten Hopp |
f410e2 |
+ JSEND
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+ STARTTEST
|
|
Karsten Hopp |
f410e2 |
:g/^STARTTEST/.,/^ENDTEST/d
|
|
Karsten Hopp |
f410e2 |
:1;/start of AUTO/,$wq! test.out
|
|
Karsten Hopp |
f410e2 |
ENDTEST
|
|
Karsten Hopp |
f410e2 |
*** ../vim-7.3.255/src/testdir/test3.ok 2011-07-15 14:12:25.000000000 +0200
|
|
Karsten Hopp |
f410e2 |
--- src/testdir/test3.ok 2011-07-15 21:06:38.000000000 +0200
|
|
Karsten Hopp |
f410e2 |
***************
|
|
Karsten Hopp |
f410e2 |
*** 1443,1445 ****
|
|
Karsten Hopp |
f410e2 |
--- 1443,1559 ----
|
|
Karsten Hopp |
f410e2 |
}
|
|
Karsten Hopp |
f410e2 |
JSEND
|
|
Karsten Hopp |
f410e2 |
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+ JSSTART
|
|
Karsten Hopp |
f410e2 |
+ var foo = [
|
|
Karsten Hopp |
f410e2 |
+ 1, // indent 8 more
|
|
Karsten Hopp |
f410e2 |
+ 2,
|
|
Karsten Hopp |
f410e2 |
+ 3
|
|
Karsten Hopp |
f410e2 |
+ ]; // indent 8 less
|
|
Karsten Hopp |
f410e2 |
+ JSEND
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+ JSSTART
|
|
Karsten Hopp |
f410e2 |
+ function bar() {
|
|
Karsten Hopp |
f410e2 |
+ var foo = [
|
|
Karsten Hopp |
f410e2 |
+ 1,
|
|
Karsten Hopp |
f410e2 |
+ 2,
|
|
Karsten Hopp |
f410e2 |
+ 3
|
|
Karsten Hopp |
f410e2 |
+ ]; // indent 16 less
|
|
Karsten Hopp |
f410e2 |
+ }
|
|
Karsten Hopp |
f410e2 |
+ JSEND
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+ JSSTART
|
|
Karsten Hopp |
f410e2 |
+ (function($){
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+ var class_name='myclass';
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+ function private_method() {
|
|
Karsten Hopp |
f410e2 |
+ }
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+ var public_method={
|
|
Karsten Hopp |
f410e2 |
+ method: function(options,args){
|
|
Karsten Hopp |
f410e2 |
+ private_method();
|
|
Karsten Hopp |
f410e2 |
+ }
|
|
Karsten Hopp |
f410e2 |
+ }
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+ function init(options) {
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+ $(this).data(class_name+'_public',$.extend({},{
|
|
Karsten Hopp |
f410e2 |
+ foo: 'bar',
|
|
Karsten Hopp |
f410e2 |
+ bar: 2, // indent 8 more
|
|
Karsten Hopp |
f410e2 |
+ foobar: [ // indent 8 more
|
|
Karsten Hopp |
f410e2 |
+ 1, // indent 8 more
|
|
Karsten Hopp |
f410e2 |
+ 2, // indent 16 more
|
|
Karsten Hopp |
f410e2 |
+ 3 // indent 16 more
|
|
Karsten Hopp |
f410e2 |
+ ],
|
|
Karsten Hopp |
f410e2 |
+ callback: function(){ // indent 8 more
|
|
Karsten Hopp |
f410e2 |
+ return true; // indent 8 more
|
|
Karsten Hopp |
f410e2 |
+ } // indent 8 more
|
|
Karsten Hopp |
f410e2 |
+ }, options||{}));
|
|
Karsten Hopp |
f410e2 |
+ }
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+ $.fn[class_name]=function() {
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+ var _arguments=arguments;
|
|
Karsten Hopp |
f410e2 |
+ return this.each(function(){
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+ var options=$(this).data(class_name+'_public');
|
|
Karsten Hopp |
f410e2 |
+ if (!options) {
|
|
Karsten Hopp |
f410e2 |
+ init.apply(this,_arguments);
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+ } else {
|
|
Karsten Hopp |
f410e2 |
+ var method=public_method[_arguments[0]];
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+ if (typeof(method)!='function') {
|
|
Karsten Hopp |
f410e2 |
+ console.log(class_name+' has no method "'+_arguments[0]+'"');
|
|
Karsten Hopp |
f410e2 |
+ return false;
|
|
Karsten Hopp |
f410e2 |
+ }
|
|
Karsten Hopp |
f410e2 |
+ _arguments[0]=options;
|
|
Karsten Hopp |
f410e2 |
+ method.apply(this,_arguments);
|
|
Karsten Hopp |
f410e2 |
+ }
|
|
Karsten Hopp |
f410e2 |
+ });
|
|
Karsten Hopp |
f410e2 |
+ }
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+ })(jQuery);
|
|
Karsten Hopp |
f410e2 |
+ JSEND
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+ JSSTART
|
|
Karsten Hopp |
f410e2 |
+ function init(options) {
|
|
Karsten Hopp |
f410e2 |
+ $(this).data(class_name+'_public',$.extend({},{
|
|
Karsten Hopp |
f410e2 |
+ foo: 'bar',
|
|
Karsten Hopp |
f410e2 |
+ bar: 2,
|
|
Karsten Hopp |
f410e2 |
+ foobar: [
|
|
Karsten Hopp |
f410e2 |
+ 1, // indent 8 more
|
|
Karsten Hopp |
f410e2 |
+ 2, // indent 8 more
|
|
Karsten Hopp |
f410e2 |
+ 3 // indent 8 more
|
|
Karsten Hopp |
f410e2 |
+ ],
|
|
Karsten Hopp |
f410e2 |
+ callback: function(){
|
|
Karsten Hopp |
f410e2 |
+ return true;
|
|
Karsten Hopp |
f410e2 |
+ }
|
|
Karsten Hopp |
f410e2 |
+ }, options||{}));
|
|
Karsten Hopp |
f410e2 |
+ }
|
|
Karsten Hopp |
f410e2 |
+ JSEND
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
+ JSSTART
|
|
Karsten Hopp |
f410e2 |
+ (function($){
|
|
Karsten Hopp |
f410e2 |
+ function init(options) {
|
|
Karsten Hopp |
f410e2 |
+ $(this).data(class_name+'_public',$.extend({},{
|
|
Karsten Hopp |
f410e2 |
+ foo: 'bar',
|
|
Karsten Hopp |
f410e2 |
+ bar: 2, // indent 8 more
|
|
Karsten Hopp |
f410e2 |
+ foobar: [ // indent 8 more
|
|
Karsten Hopp |
f410e2 |
+ 1, // indent 8 more
|
|
Karsten Hopp |
f410e2 |
+ 2, // indent 16 more
|
|
Karsten Hopp |
f410e2 |
+ 3 // indent 16 more
|
|
Karsten Hopp |
f410e2 |
+ ],
|
|
Karsten Hopp |
f410e2 |
+ callback: function(){ // indent 8 more
|
|
Karsten Hopp |
f410e2 |
+ return true; // indent 8 more
|
|
Karsten Hopp |
f410e2 |
+ } // indent 8 more
|
|
Karsten Hopp |
f410e2 |
+ }, options||{}));
|
|
Karsten Hopp |
f410e2 |
+ }
|
|
Karsten Hopp |
f410e2 |
+ })(jQuery);
|
|
Karsten Hopp |
f410e2 |
+ JSEND
|
|
Karsten Hopp |
f410e2 |
+
|
|
Karsten Hopp |
f410e2 |
*** ../vim-7.3.255/src/version.c 2011-07-20 15:04:52.000000000 +0200
|
|
Karsten Hopp |
f410e2 |
--- src/version.c 2011-07-20 15:08:13.000000000 +0200
|
|
Karsten Hopp |
f410e2 |
***************
|
|
Karsten Hopp |
f410e2 |
*** 711,712 ****
|
|
Karsten Hopp |
f410e2 |
--- 711,714 ----
|
|
Karsten Hopp |
f410e2 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
f410e2 |
+ /**/
|
|
Karsten Hopp |
f410e2 |
+ 256,
|
|
Karsten Hopp |
f410e2 |
/**/
|
|
Karsten Hopp |
f410e2 |
|
|
Karsten Hopp |
f410e2 |
--
|
|
Karsten Hopp |
f410e2 |
Not too long ago, a keyboard was something to make music with...
|
|
Karsten Hopp |
f410e2 |
|
|
Karsten Hopp |
f410e2 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
f410e2 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
f410e2 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
f410e2 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|