Changeset 4418


Ignore:
Timestamp:
10/17/03 00:50:01 (18 years ago)
Author:
piso
Message:

hideSyntacticWhitespace(): replace double-quoted strings with 'X' characters.

File:
1 edited

Legend:

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

    r4388 r4418  
    33 *
    44 * Copyright (C) 1998-2003 Peter Graves
    5  * $Id: JavaSyntaxIterator.java,v 1.2 2003-10-15 15:32:55 piso Exp $
     5 * $Id: JavaSyntaxIterator.java,v 1.3 2003-10-17 00:50:01 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    4848    }
    4949
    50     // Returns char array with syntactic whitespace (quotes and comments)
    51     // replaced with actual space characters.
     50    // Replaces comments with space characters and double-quoted strings with
     51    // 'X' characters.
    5252    private char[] hideSyntacticWhitespace(String s, int initialState)
    5353    {
     
    6464            }
    6565            if (state == STATE_QUOTE) {
    66                 chars[i] = ' ';
     66                chars[i] = 'X';
    6767                if (c == '"')
    6868                    state = STATE_NEUTRAL;
Note: See TracChangeset for help on using the changeset viewer.