Revision: 20424
          http://sourceforge.net/p/jmol/code/20424
Author:   hansonr
Date:     2015-04-01 11:58:10 +0000 (Wed, 01 Apr 2015)
Log Message:
-----------
Jmol.___JmolVersion="14.3.13_2015.04.01" 

bug fix: local var xxx with same name of ..xxx forces lower case xxx
 
new feature: draw polygon [@1 @2 @3...]
  -- fills polygon with triangles
  -- order is important -- must be in order cw or ccw
  -- example:
    
                load $caffeine
                draw polygon [@5 @7 @12 @13 @1 @3]

new feature: ".[a]" notation extended to x.. and allows mixing with .a.
        function a(){return 1}
        x = [A:[1,2,3], a:[4,5,6]] 
        $ print x.a.[a()]
         4
        $ print x..a..[a()]
         4
        $ print x.a..[a()]
         4
        $ print x..a..[a()]
         4
        $ print x..a.[a()]
         4
        $ y = x.a[1][2]; show y
         y = [ 4,5 ]
  

Modified Paths:
--------------
    trunk/Jmol/src/org/jmol/script/ScriptCompiler.java
    trunk/Jmol/src/org/jmol/viewer/Jmol.properties

Modified: trunk/Jmol/src/org/jmol/script/ScriptCompiler.java
===================================================================
--- trunk/Jmol/src/org/jmol/script/ScriptCompiler.java  2015-04-01 11:26:34 UTC 
(rev 20423)
+++ trunk/Jmol/src/org/jmol/script/ScriptCompiler.java  2015-04-01 11:58:10 UTC 
(rev 20424)
@@ -907,7 +907,7 @@
   private void getPrefixToken() {
     ident = script.substring(ichToken, ichToken + cchToken);
     identLC = ident.toLowerCase();
-    boolean isUserVar = (isContextVariable(identLC));
+    boolean isUserVar = (!isDotDot && isContextVariable(identLC));
     String preserveCase = null;
     if (nTokens == 0)
       isUserToken = isUserVar;

Modified: trunk/Jmol/src/org/jmol/viewer/Jmol.properties
===================================================================
--- trunk/Jmol/src/org/jmol/viewer/Jmol.properties      2015-04-01 11:26:34 UTC 
(rev 20423)
+++ trunk/Jmol/src/org/jmol/viewer/Jmol.properties      2015-04-01 11:58:10 UTC 
(rev 20424)
@@ -16,6 +16,8 @@
 
 Jmol.___JmolVersion="14.3.13_2015.04.01" 
 
+bug fix: local var xxx with same name of ..xxx forces lower case xxx
+ 
 new feature: draw polygon [@1 @2 @3...]
   -- fills polygon with triangles
   -- order is important -- must be in order cw or ccw

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Jmol-commits mailing list
Jmol-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-commits

Reply via email to