Changeset 826

Show
Ignore:
Timestamp:
08/14/10 08:41:41 (18 months ago)
Author:
stefan
Message:

fixed bug #87: completion for \includegraphics does not work in case of optional parameters

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/jlatexeditor/codehelper/IncludeCodeHelper.java

    r808 r826  
    1616 
    1717  public IncludeCodeHelper() { 
    18     pattern = new PatternPair("\\\\(include(?:graphics)?|input)\\{([^{}]*/)?([^{}/]*)"); 
     18    pattern = new PatternPair("\\\\(include(?:graphics)?|input)(?:\\[[^\\]]*\\])?\\{([^{}]*/)?([^{}/]*)"); 
    1919  } 
    2020