-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Bash File names with periods #547
Comments
Adding this to bash component seems to work for me, but didn't see a test suite to feel comfortable just submitting pull request.
|
I think your suggestion would not work for expressions like Maybe we just need to consider the dot number: {
pattern: /([^\w\.])-?(0x[\dA-Fa-f]+|\d*\.?\d+([Ee]-?\d+)?)\b/,
lookbehind: true
} What do you think? (Regarding test suite, it's a known problem. For now, the closest thing we have is the Examples page... So I'll add an example for this specific issue once we agree on the way to fix it.) |
That's where I started, but wasn't sure on the regex and switched to what I posted. What you posted works for my few brief examples. Would you say this is a clike problem or a bash problem? Let me know if you'd prefer I submit the pull request. |
I'll commit this directly. For now, I'll consider this only applies to bash, because I don't think the case can happen in all c-like languages. |
Bash syntax highlighting struggles with files with version numbers. The line below will highlight the .7 as a number.
The text was updated successfully, but these errors were encountered: