Changeset 8713


Ignore:
Timestamp:
03/05/05 17:41:19 (16 years ago)
Author:
piso
Message:

findMatchInternal(): don't try to match escaped characters.

File:
1 edited

Legend:

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

    r8707 r8713  
    33 *
    44 * Copyright (C) 1998-2005 Peter Graves
    5  * $Id: Editor.java,v 1.142 2005-03-04 19:15:58 piso Exp $
     5 * $Id: Editor.java,v 1.143 2005-03-05 17:41:19 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    13331333        if (mode.isInComment(buffer, start) || mode.isInQuote(buffer, start))
    13341334            return null;
     1335        final int offset = start.getOffset();
     1336        if (offset > 0 && start.getLine().charAt(offset - 1) == '\\') {
     1337            // It's escaped.
     1338            return null;
     1339        }
    13351340        final String s2 = new String("})]{([");
    13361341        final char match = s2.charAt(index);
Note: See TracChangeset for help on using the changeset viewer.