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

Delete buggy detection for Mosel #1936

Merged
merged 1 commit into from
Apr 2, 2023

Conversation

CyrilBrulebois
Copy link
Contributor

The “Lexer Development” doc says:

It is important to note that self.detect? should only return true if it is
100% sure that the language is detected.

The specified function matches any file containing the words “model” or “package” at the beginning of a line, which misfires quite a lot!

Regularly spotted with debian/changelog files on https://salsa.debian.org/ (powered by GitLab).


In passing, http://rouge.jneen.net/ (mentioned in the About section) is unreachable.

The “Lexer Development” doc says:

    It is important to note that self.detect? should only return true if it is
    100% sure that the language is detected.

The specified function matches any file containing the words “model” or
“package” at the beginning of a line, which misfires quite a lot!

Regularly spotted with debian/changelog files on https://salsa.debian.org/
(powered by GitLab).
@jneen
Copy link
Member

jneen commented Mar 22, 2023

Very good catch, thank you!

@tancnle
Copy link
Collaborator

tancnle commented Apr 2, 2023

Thanks for the contribution @CyrilBrulebois. LGTM 🚀

@tancnle tancnle added this pull request to the merge queue Apr 2, 2023
Merged via the queue into rouge-ruby:master with commit 3889923 Apr 2, 2023
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

Successfully merging this pull request may close these issues.

3 participants