Changeset 4388


Ignore:
Timestamp:
10/15/03 15:32:55 (19 years ago)
Author:
piso
Message:

hideSyntacticWhitespace(): support STATE_QUOTE (fixes bug 818919).

File:
1 edited

Legend:

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

    r2 r4388  
    22 * JavaSyntaxIterator.java
    33 *
    4  * Copyright (C) 1998-2002 Peter Graves
    5  * $Id: JavaSyntaxIterator.java,v 1.1.1.1 2002-09-24 16:09:00 piso Exp $
     4 * Copyright (C) 1998-2003 Peter Graves
     5 * $Id: JavaSyntaxIterator.java,v 1.2 2003-10-15 15:32:55 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    2424// Supports movement through the syntactically important text of a buffer, i.e.
    2525// skipping whitespace and comments.
    26 public final class JavaSyntaxIterator extends DefaultSyntaxIterator implements
    27     Constants
     26public final class JavaSyntaxIterator extends DefaultSyntaxIterator
     27    implements Constants
    2828{
    2929    public JavaSyntaxIterator(Position pos)
     
    3838        if (line.flags() == STATE_COMMENT)
    3939            return hideSyntacticWhitespace(line.getText(), STATE_COMMENT);
    40         else
    41             return hideSyntacticWhitespace(line.getText(), STATE_NEUTRAL);
     40        if (line.flags() == STATE_QUOTE)
     41            return hideSyntacticWhitespace(line.getText(), STATE_QUOTE);
     42        return hideSyntacticWhitespace(line.getText(), STATE_NEUTRAL);
    4243    }
    4344
Note: See TracChangeset for help on using the changeset viewer.