Skip to content

Configuration file: define a language #11

@e7e6

Description

@e7e6

With commit 0be10e3, the use of a configuration file is now possible.

Unfortunatly, it is missing the possibility to define how a language is parsed. This is so far done within the script:

my %LANGUAGE_COMMENTS_BEGIN = (
    "java"       => '\/\/',   # To be completed with other languages if possible
    "javascript" => "\/\/",
    "jsp"        => "<!--",
    "plsql"      => "--",
    "proc"       => "\/\/",
);

my %LANGUAGE_COMMENTS_END = (
    "java"       => '',       # To be completed with other languages if possible
    "javascript" => "",
    "jsp"        => "-->",
    "plsql"      => "",
    "proc"       => "",
);

my %REGEX_BEFORE = (
    "plsql"      => '',      # how we identify keywords, directly as in plsql
    "others"     => '".*?',  # or in character strings ?
);

my %REGEX_AFTER = (
    "plsql"      => '',      # how we identify keywords, directly as in plsql
    "others"     => '.*?\"', # or in character strings ?
);

but should be made possible with the configuration file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions