Changeset 8594


Ignore:
Timestamp:
02/16/05 21:41:19 (16 years ago)
Author:
piso
Message:

public static boolean isDelimited(Mode mode, Position pos, int length): call mode.isDelimited(pos, length).

File:
1 edited

Legend:

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

    r7712 r8594  
    22 * Utilities.java
    33 *
    4  * Copyright (C) 1998-2004 Peter Graves
    5  * $Id: Utilities.java,v 1.37 2004-09-17 18:14:05 piso Exp $
     4 * Copyright (C) 1998-2005 Peter Graves
     5 * $Id: Utilities.java,v 1.38 2005-02-16 21:41:19 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    118118        if (mode == null)
    119119            return isDelimited(pos, length);
    120         final int before = pos.getOffset() - 1;
    121         if (before >= 0 && mode.isIdentifierPart(pos.getLine().charAt(before)))
    122             return false;
    123         final int after = pos.getOffset() + length;
    124         if (after < pos.getLineLength() && mode.isIdentifierPart(pos.getLine().charAt(after)))
    125             return false;
    126         return true;
     120        return mode.isDelimited(pos, length);
    127121    }
    128122
Note: See TracChangeset for help on using the changeset viewer.