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

fix end regex for single-line comment #3

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

Conversation

jliszka
Copy link

@jliszka jliszka commented Apr 11, 2014

No description provided.

@infininight
Copy link
Member

Is the current match causing an issue in a certain case? If so please provide a code snippet.

@jliszka
Copy link
Author

jliszka commented Apr 18, 2014

struct foo {
  1: i32 f1 // a comment
}

struct bar {
 2: i32 f2 (wire_name="f2")
}

The comment in struct foo throws off the regex and lots of stuff is misparsed in struct bar

@infininight
Copy link
Member

What editor and version are you seeing this error in? Works as intended in TextMate 2.0. (With a fix I just pushed to better recognize comments, but seems unrelated to your issue.)

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.

2 participants