Revision: 20425 http://sourceforge.net/p/jmol/code/20425 Author: hansonr Date: 2015-04-01 12:06:11 +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 Modified Paths: -------------- trunk/Jmol/src/org/jmol/script/ScriptCompiler.java Modified: trunk/Jmol/src/org/jmol/script/ScriptCompiler.java =================================================================== --- trunk/Jmol/src/org/jmol/script/ScriptCompiler.java 2015-04-01 11:58:10 UTC (rev 20424) +++ trunk/Jmol/src/org/jmol/script/ScriptCompiler.java 2015-04-01 12:06:11 UTC (rev 20425) @@ -907,13 +907,13 @@ private void getPrefixToken() { ident = script.substring(ichToken, ichToken + cchToken); identLC = ident.toLowerCase(); - boolean isUserVar = (!isDotDot && isContextVariable(identLC)); + boolean isUserVar = (lastToken.tok != T.per && !isDotDot && isContextVariable(identLC)); String preserveCase = null; if (nTokens == 0) isUserToken = isUserVar; if (nTokens == 1 && (tokCommand == T.function || tokCommand == T.parallel || tokCommand == T.var) - || nTokens != 0 && isUserVar && lastToken.tok != T.per || !isDotDot + || nTokens != 0 && isUserVar || !isDotDot && isUserFunction(identLC) && ((preserveCase = ident) != null) && (thisFunction == null || !thisFunction.name.equals(identLC))) { // we need to allow: 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