Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration file: define a language #11

Open
e7e6 opened this issue Mar 6, 2018 · 0 comments
Open

Configuration file: define a language #11

e7e6 opened this issue Mar 6, 2018 · 0 comments

Comments

@e7e6
Copy link
Collaborator

e7e6 commented Mar 6, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant