Changeset 174
- Timestamp:
- 10/24/02 17:32:59 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/j/src/org/armedbear/j/LispShellFormatter.java
r165 r174 3 3 * 4 4 * Copyright (C) 1998-2002 Peter Graves 5 * $Id: LispShellFormatter.java,v 1. 1 2002-10-19 14:06:57piso Exp $5 * $Id: LispShellFormatter.java,v 1.2 2002-10-24 17:32:59 piso Exp $ 6 6 * 7 7 * This program is free software; you can redistribute it and/or … … 32 32 private static final byte FORMAT_PROMPT = 1; 33 33 private static final byte FORMAT_INPUT = 2; 34 35 private final RE defaultPromptRE = 36 new UncheckedRE("^[^>\\*\\]]*[>\\*\\]] *"); 34 37 35 38 public LispShellFormatter(Buffer buffer) … … 76 79 } 77 80 78 private final RE promptRE = new UncheckedRE("^[^>\\*\\]]*[>\\*\\]] *");79 80 81 private int getPromptEndIndex(String text) 81 82 { … … 91 92 if (text.startsWith("* ")) 92 93 return 2; 94 final RE promptRE; 95 if (buffer instanceof CommandInterpreter) 96 promptRE = ((CommandInterpreter)buffer).getPromptRE(); 97 else 98 promptRE = defaultPromptRE; 93 99 REMatch match = promptRE.getMatch(text); 94 100 if (match != null)
Note: See TracChangeset
for help on using the changeset viewer.