[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.5/kdelibs/kjs
From:       Harri Porten <porten () kde ! org>
Date:       2007-02-24 21:30:42
Message-ID: 1172352642.908183.25974.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 636962 by porten:

introduction of new state had broken state-dependant hack


 M  +3 -2      lexer.cpp  


--- branches/KDE/3.5/kdelibs/kjs/lexer.cpp #636961:636962
@@ -523,7 +523,8 @@
   }
 #endif
 
-  if (state != Identifier && convertNextIdentifier)
+  if (state != Identifier && state != IdentifierOrKeyword &&
+      convertNextIdentifier)
     convertNextIdentifier = false;
 
   restrKeyword = false;
@@ -544,7 +545,7 @@
     if ((token = Lookup::find(&mainTable, buffer16, pos16)) < 0) {
   case Identifier:
       // Lookup for keyword failed, means this is an identifier
-      // Apply anonymous-function hack below (eat the identifier)
+      // Apply anonymous-function hack below (convert the identifier)
       if (convertNextIdentifier) {
         convertNextIdentifier = false;
 #ifdef KJS_VERBOSE
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic