Changeset 392

Show
Ignore:
Timestamp:
09/23/08 14:48:36 (4 months ago)
Author:
tjas..@bitfauna.com
Message:

Tim Jasko
-Fixed a bug in the new project wizard where it tried to open tests.lisp even if it was not created.
-Fixed a bug in the paren balance checker that didn't handle a string of octothorpes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • jasko.tim.lisp/src/jasko/tim/lisp/builder/LispBuilder.java

    r352 r392  
    348348                        boolean cancompile = true; 
    349349                        // check if package dependence is satisfied: 
    350                         ArrayList<String> pkgs = LispPlugin.getDefault().getSwank().getAvailablePackages(2000); 
     350                        ArrayList<String> pkgs = LispPlugin.getDefault().getSwank().getAvailablePackages(3000); 
    351351                        for( LispNode node: code.params ){ 
    352352                                String nodetype = node.car().value.toLowerCase(); 
     
    553553                                                        i = line.length(); 
    554554                                                        break; 
    555                                                 } else if (c == '"' && !(i > 1 && (line.charAt(i-1) == '\\' || line.charAt(i-2) == '#'))) { 
     555                                                } else if (c == '"' && !(i > 1 && (!inQuotes && (line.charAt(i-1) == '\\' || line.charAt(i-2) == '#')))) { 
    556556                                                        inQuotes = !inQuotes; 
    557                                                 } else if (c == '#' && !(i > 1 && (line.charAt(i-1) == '\\' || line.charAt(i-2) == '#'))) { 
     557                                                } else if (c == '#' && !inQuotes && !(i > 1 && (line.charAt(i-1) == '\\' || line.charAt(i-2) == '#'))) { 
    558558                                                        if (i+1 < line.length()) { 
    559559                                                                if (line.charAt(i+1) == '|') { 
  • jasko.tim.lisp/src/jasko/tim/lisp/wizards/NewProjectWiz.java

    r359 r392  
    106106         */ 
    107107        private void doFinish (String projectName, String customProjectPath, 
    108                         boolean useLispUnit, boolean makeExample, 
     108                        final boolean useLispUnit, boolean makeExample, 
    109109                        IProgressMonitor monitor) throws CoreException { 
    110110                monitor.beginTask("Creating " + projectName, 10); 
     
    209209                                        IDE.openEditor(page, asd, true); 
    210210                                        IDE.openEditor(page, defpackage, true); 
    211                                         IDE.openEditor(page, tests, true); 
     211                                        if (useLispUnit) { 
     212                                                IDE.openEditor(page, tests, true); 
     213                                        } 
    212214                                        IDE.openEditor(page, main, true); 
    213215