Skip to content

Representation of regex in JSON #27591

Closed
Closed

Description

This is a follow up on #27486 (comment) which is about having support for the word-regex in xyz.language-configuration.json-files. There we have {pattern:string; flags:string} or just a string and in the problem matcher definition of the task framework we have {regexp:string; ...}.

Since both seem different and since problem matchers are already shipped we should consider aligning the language configuration.

Activity

  1. added
    bug
    and removed
    bug
    on May 31, 2017
  2. alexdima commented on May 31, 2017

    @alexdima
    Member

    After discussion with Dirk Bäumer (@dbaeumer) and Johannes Rieken (@jrieken) we agree:

    • in the pattern matching extension point there is the notion of a regular expression.
    • today there is a regexp property that belongs to an object that contains very many other things.
    • if we will add support for customizing the flags for a regular expression in a problem matcher (e.g. case insensitive, new unicode support in node8), we will go down the path where regexp: string | { pattern: string; flags: string }
    • this will make it that this is all aligned nicely with wordDefinition: string | { pattern: string; flags: string }
  3. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions