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

Wrong values are highlighted in valid regexp #7

Open
marcelgerber opened this issue Feb 11, 2014 · 3 comments
Open

Wrong values are highlighted in valid regexp #7

marcelgerber opened this issue Feb 11, 2014 · 3 comments

Comments

@marcelgerber
Copy link

  1. Start an editor with cubic-bezier\(\s*(\S+)\s*,\s*(\S+)\s*,\s*(\S+)\s*,\s*(\S+)\s*\) and cubic-bezier(0, 0, 0, 0) (both are valid)
  2. Look at the highlighting in the second field
  3. Hover over $1-$4
  4. Look at the highlighting

Result: At 2, you can see that cubic-bezier(0, 0, 0, is highlighted. At 4, the wrong properties are highlighted.
Expected: At 2, everything should be highlighted. At 4, the numbers (0) should be highlighted.

@peterflynn
Copy link
Owner

It seems to be working for me:

regexp-full

regexp-mouseover

Are you sure you have the latest version of the extension?

Do you have any kind of themes extension installed? It's possible that could be adding CSS rules that screw up the highlight positioning -- try disabling any theme extensions and see if that changes anything.

@marcelgerber
Copy link
Author

This is not an issue caused by any extensions, I've just disabled them all.
I'm using this extension version 1.1.2 (from the Extension Manager) and adobe/brackets@e8386053d.

Screens:
image
image

@marcelgerber
Copy link
Author

Ah, just found it out - it's caused by a little bit higher font size (Ctrl + +).
I will look into the code a bit to see if I can submit a PR.

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

No branches or pull requests

2 participants