[KSS-checkins] r46071 - kukit/kukit.js/branch/commas-in-selectors/kukit

gotcha at codespeak.net gotcha at codespeak.net
Tue Aug 28 10:38:44 CEST 2007


Author: gotcha
Date: Tue Aug 28 10:38:43 2007
New Revision: 46071

Modified:
   kukit/kukit.js/branch/commas-in-selectors/kukit/kssparser.js
Log:
commentbegin and commentend rename

Modified: kukit/kukit.js/branch/commas-in-selectors/kukit/kssparser.js
==============================================================================
--- kukit/kukit.js/branch/commas-in-selectors/kukit/kssparser.js	(original)
+++ kukit/kukit.js/branch/commas-in-selectors/kukit/kssparser.js	Tue Aug 28 10:38:43 2007
@@ -23,8 +23,8 @@
 
 /* Tokens */
 
-kukit.kssp.commentbegin = kukit.tk.mkToken('commentbegin', "\/\*");
-kukit.kssp.commentend = kukit.tk.mkToken('commentend', "\*\/");
+kukit.kssp.openComment = kukit.tk.mkToken('openComment', "\/\*");
+kukit.kssp.closeComment = kukit.tk.mkToken('closeComment', "\*\/");
 kukit.kssp.openBrace = kukit.tk.mkToken('openBrace', "{");
 kukit.kssp.closeBrace = kukit.tk.mkToken('closeBrace', "}");
 kukit.kssp.openbracket = kukit.tk.mkToken('openbracket', "[");
@@ -45,7 +45,7 @@
 * class Document 
 */
 kukit.kssp.Document = kukit.tk.mkParser('document', {
-    "\/\*": 'new kukit.kssp.Comment(this.cursor, kukit.kssp.commentbegin)',
+    "\/\*": 'new kukit.kssp.Comment(this.cursor, kukit.kssp.openComment)',
     "{": 'new kukit.kssp.Block(this.cursor, kukit.kssp.openBrace)'
     });
 kukit.kssp.Document.prototype.process = function() {
@@ -102,7 +102,7 @@
 */
 kukit.kssp.Comment = kukit.tk.mkParser('comment', {
     // it's not 100% good, but will do
-    "\*\/": 'this.emitAndReturn(new kukit.kssp.commentend(this.cursor))'
+    "\*\/": 'this.emitAndReturn(new kukit.kssp.closeComment(this.cursor))'
     });
 kukit.kssp.Comment.prototype.process = function() {
     this.result = [];
@@ -349,7 +349,7 @@
     ",": 'this.emitAndReturn()',
     "'": 'new kukit.kssp.String(this.cursor, kukit.kssp.quote)',
     '"': 'new kukit.kssp.String2(this.cursor, kukit.kssp.dquote)',
-    "\/\*": 'new kukit.kssp.Comment(this.cursor, kukit.kssp.commentbegin)',
+    "\/\*": 'new kukit.kssp.Comment(this.cursor, kukit.kssp.openComment)',
     "(": 'new kukit.kssp.MethodArgs(this.cursor, kukit.kssp.openparent)'
     });
 kukit.kssp.PropValue.prototype.process = function() {
@@ -417,7 +417,7 @@
     ",": 'this.emitAndReturn()',
     "'": 'new kukit.kssp.String(this.cursor, kukit.kssp.quote)',
     '"': 'new kukit.kssp.String2(this.cursor, kukit.kssp.dquote)',
-    "\/\*": 'new kukit.kssp.Comment(this.cursor, kukit.kssp.commentbegin)'
+    "\/\*": 'new kukit.kssp.Comment(this.cursor, kukit.kssp.openComment)'
     });
 kukit.kssp.PropValueInMethod.prototype.multiword_allowed = false;
 kukit.kssp.PropValueInMethod.prototype.process =
@@ -508,7 +508,7 @@
     '"': 'new kukit.kssp.String2(this.cursor, kukit.kssp.dquote)',
     ",": 'new kukit.kssp.comma(this.cursor)',
     ")": 'this.emitAndReturn(new kukit.kssp.closeparent(this.cursor))',
-    "\/\*": 'new kukit.kssp.Comment(this.cursor, kukit.kssp.commentbegin)'
+    "\/\*": 'new kukit.kssp.Comment(this.cursor, kukit.kssp.openComment)'
     });
 kukit.kssp.MethodArgs.prototype.process = function() {
     this.args = [];
@@ -552,7 +552,7 @@
 kukit.kssp.KssSelectors = kukit.tk.mkParser('kssselectors', {
     ",": 'new kukit.kssp.comma(this.cursor)',
     "{": 'this.emitAndReturn()',
-    "\/\*": 'new kukit.kssp.Comment(this.cursor, kukit.kssp.commentbegin)'
+    "\/\*": 'new kukit.kssp.Comment(this.cursor, kukit.kssp.openComment)'
     });
 kukit.kssp.KssSelectors.prototype.process = function() {
     this.selectors = [];
@@ -583,7 +583,7 @@
     ":": '[new kukit.kssp.colon(this.cursor), new ' + 
         'kukit.kssp.EventValue(this.cursor)]',
     "{": 'this.emitAndReturn()',
-    "\/\*": 'new kukit.kssp.Comment(this.cursor, kukit.kssp.commentbegin)'
+    "\/\*": 'new kukit.kssp.Comment(this.cursor, kukit.kssp.openComment)'
     });
 kukit.kssp.KssSelector.prototype.process = function() {
     var name;


More information about the Kukit-checkins mailing list