-
Notifications
You must be signed in to change notification settings - Fork 18
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
RegExp in JS #51
Comments
Was this related to the |
Which color scheme are you using? |
Ooo I am using sublime's core to highlight the regex, what version of sublime are you using? |
I changed for test this color schema by default Monokai, but the problem is still here. Nothing changed. I tried some another schemes - nothing happens. |
It's probably the core, I am using the 3156 build, I'll use the fixed regex code directly from the core to fix the syntax in earlier builds too. |
Check this pull #52 I tested locally and it fixes the issue, had to rewrite the regex patterns to remove the dependency from the core. |
I am going to check the scopes before merging. |
It should be close to the colors the scopes the core was giving now. Can you check it before I merge? |
Which color scheme are you using? |
sample: const matches = str.match(/^\s*(\{[^}]*\}|[\d.,+*()/\s-]+)\s*/);
const a = /(19|20)\d\d[- /.](0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])/;
const b = /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]?)$/ ColorScheme: Monokai (SL) |
The difference in the const keyword was that in older builds, it was being highlighted as keyword instead of The variable name in naomi is scoped as The lastest commits I sent to the pull request, made the regex literal similar to how the core is highlighting it(without the bug): |
Released the patch https://github.com/borela/naomi/releases/tag/v3.1.3 |
I am going to try to reproduce the issue on my pc. |
Did try to install from package control or cloned the repo? If you clonned, are you on the master branch? After I merged the patch #52, it removed any references to |
I think it's probably a cache issue, sublime compiles the syntaxes to a faster format and put it in a
You'll see a |
Yeah, you're right. After removing the Cache directory and restarting sublime the problem dissolved. |
Great that it solved; caching issues are pretty rare on sublime, if you know how to reproduce them reliably, post an issue on the core https://github.com/SublimeTextIssues/Core/issues |
A little problem at
\s
in([])
.The text was updated successfully, but these errors were encountered: