Author: gotcha
Date: Wed Aug 29 12:25:44 2007
New Revision: 46144

Modified:
   kukit/kukit.js/trunk/kukit/kssparser.js
Log:
fix action-error declaration

Modified: kukit/kukit.js/trunk/kukit/kssparser.js
==============================================================================
--- kukit/kukit.js/trunk/kukit/kssparser.js     (original)
+++ kukit/kukit.js/trunk/kukit/kssparser.js     Wed Aug 29 12:25:44 2007
@@ -259,6 +259,7 @@
 ;;;     kukit.E += 'allowed for <ACTIONNAME>-error keys.';
 ;;;     this.emitError(kukit.E);
 ;;; }
+    var action = this.actions.getOrCreateAction(key);
     action.setError(value.txt);
     // also create the action for the error itself.
     var err_action = this.actions.getOrCreateAction(value.txt);
@@ -301,8 +302,6 @@
 }
 
 kukit.kssp.Block.prototype.addDeclaration = function(key, value) {
-
-
     // p.s. value is here a KssXxParm. In most cases we check and unwrap it.
     // the keys look like this:
     //
@@ -634,6 +633,10 @@
         this.selectors.push(parser.kssSelector);
         if (context.nextTokenIndex == this.result.length) break;
         this.expectToken(context, kukit.kssp.comma);
+        if (context.nextTokenIndex == this.result.length) {
+;;;        kukit.E = 'Wrong event selector : trailing comma';
+           this.emitError(kukit.E); 
+        }
     };
     this.result = [];
     this.txt = '';
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins

Reply via email to