Changeset 401

Show
Ignore:
Timestamp:
09/25/08 18:30:16 (4 months ago)
Author:
tjas..@bitfauna.com
Message:

Tim Jasko
-Think I got paren balancing right now. Should handle escaped quotes and the pound sign now

Files:

Legend:

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

    r400 r401  
    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) == '\\')) || 
     556                                                                (i > 2 && (!inQuotes && (line.charAt(i-1) == '\\' && line.charAt(i-2) == '#'))))) { 
    556557                                                        inQuotes = !inQuotes; 
    557558                                                } else if (c == '#' && !(i > 1 && (line.charAt(i-1) == '\\' || line.charAt(i-2) == '#'))) {