Changeset 3786


Ignore:
Timestamp:
09/15/03 03:52:12 (19 years ago)
Author:
piso
Message:

toString()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/lisp/Symbol.java

    r3781 r3786  
    33 *
    44 * Copyright (C) 2002-2003 Peter Graves
    5  * $Id: Symbol.java,v 1.71 2003-09-14 17:36:12 piso Exp $
     5 * $Id: Symbol.java,v 1.72 2003-09-15 03:52:12 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    366366        boolean escape = false;
    367367        for (int i = name.length(); i-- > 0;) {
    368             if (Character.isLowerCase(name.charAt(i))) {
     368            char c = name.charAt(i);
     369            if (c == '(' || c == ')') {
     370                escape = true;
     371                break;
     372            }
     373            if (Character.isWhitespace(c)) {
     374                escape = true;
     375                break;
     376            }
     377            if (Character.isLowerCase(c)) {
    369378                escape = true;
    370379                break;
Note: See TracChangeset for help on using the changeset viewer.