We recently added support for finding language constructs.

This enables one to search for specific language constructs like java class, java method, stratego strategy, … declaration that matches a query.

A language construct definition includes:

  • a file extensions filter (language constructs are only found in this type of files)
  • a regular expression pattern that matches a language construct
  • Matching group that captures the searchable term from the regex pattern
  • set of reposearch projects for which we enable this language construct

This feature is experimental in a sense that we are currently unable to match multiline constructs. This is due to the implementation of line numbers in reposearch. We therefore try to minimize the regex patterns we use for matching language constructs, minimizing the chance of missing a match due to a new line.

TODO:

  • Sort clickable language constructs by name in search interface
  • Instead of only showing the selected language construct filter after selection, also show excluded language constructs for switching to another construct
  • More suggestions?
Submitted by Elmer van Chastelet on 24 October 2012 at 11:39

On 6 November 2012 at 13:55 Elmer van Chastelet closed this issue.

On 6 November 2012 at 13:55 Elmer van Chastelet commented:

TODOs are done, closing this issue.

Log in to post comments