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

Force all syntax regex to ends with $ #411

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

davidhcefx
Copy link
Contributor

@davidhcefx davidhcefx commented Apr 13, 2023

Description

Lots of syntax regex are poorly written and did not ends with a $, which caused them competing with other regex rules.

As a real example: I have a patch file named 0001-some-commit-that-enhanced-a-bashrc-file.patch. Since it is ending with a .patch, one would expects it be highlighted using patch.nanorc. However, it turned out that sh.nanorc highlighted it (terribly, of course), just because of its poorly written regex!

- Lots of syntax regex are poorly written and did not ends with a '$',
   which caused them competing with other regex rules.
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.

1 participant