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 NUL-LF sequence lex #160

Merged
merged 2 commits into from Oct 11, 2016
Merged

Fix NUL-LF sequence lex #160

merged 2 commits into from Oct 11, 2016

Conversation

kivikakk
Copy link
Contributor

@kivikakk kivikakk commented Oct 10, 2016

Fixes #159.

If we hit a NUL, we advance past it. But then we advance past any LF or CR-LF, assuming we're at the end of a line and just need to push past the newline that broke us from the loop.

@jgm jgm merged commit 1f51da2 into commonmark:master Oct 11, 2016
@jgm
Copy link
Member

jgm commented Oct 11, 2016

Thanks! I may make some minor changes to this.

jgm added a commit that referenced this pull request Oct 11, 2016
- only check once for "not at end of line"
- check for null before we check for newline characters (the
  previous patch would fail for NULL + CR)

See #160.
@kivikakk
Copy link
Contributor Author

Looks good! Although the spacing seems to have gone slightly awry.

@kivikakk kivikakk deleted the kivikakk/fix-nul-lf-sequence branch October 11, 2016 14:20
@jgm
Copy link
Member

jgm commented Oct 11, 2016

I think I fixed the spacing in the next commit.

(I updated 'make format' so it doesn't reimport imports,
which was causing problems.)

+++ Yuki Izumi [Oct 11 16 07:20 ]:

Looks good! Although the spacing seems to have gone slightly awry.


You are receiving this because you modified the open/close state.
Reply to this email directly, [1]view it on GitHub, or [2]mute the
thread.

References

  1. Fix NUL-LF sequence lex #160 (comment)
  2. https://github.com/notifications/unsubscribe-auth/AAAL5BG1HFv-HT5F8RizWXEZyYqWuih0ks5qy5s9gaJpZM4KSpLD

CyberShadow pushed a commit to CyberShadow/cmark that referenced this pull request Apr 1, 2021
…s_tasklist_state_is_checked (commonmark#161)

This is in response to issue commonmark#160.
This removes cmark_gfm_extensions_get_tasklist_state and adds the
new cmark_gfm_extensions_tasklist_state_is_checked.
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.

None yet

2 participants