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
[Markdown] Add GitHub list checkboxes #2249
Conversation
8f99799
to
0fec32f
Compare
Markdown/Markdown.sublime-syntax
Outdated
captures: | ||
1: markup.list.unnumbered.markdown | ||
2: markup.list.unnumbered.bullet.markdown punctuation.definition.list_item.markdown | ||
3: markup.list.unnumbered.markdown | ||
4: keyword.other.checkbox.markdown-gfm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Random thought while browsing this: What about a storage
scope?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd be fine with that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Preference for storage.type
or storage.modifier
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Modifier, imo. Actually, now that you mention it it might as well be a language constant. I think I prefer that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Modifier, imo. Actually, now that you mention it it might as well be a language constant. I think I prefer that.
Done.
0fec32f
to
6d6f416
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a comment at the top of the fail that mentions this extension as being supported by the syntax? LGTM otherwise.
"Top of the... file?" It already mentions GFM, and to look at the suffix. |
True that. I though we had an actual feature list for extensions over commonmark in there, but mentioning GFM is certainly enough to cover checkboxes. 👍 Maybe such a list could be added by @keith-hall later, since he did most of it. |
Looks good, thanks for the implementation and reviews! |
Fixes #2248
Unsure on the scope to use, but I like the
.github
tag at the end. In a sense,constant.language
is "right," considering that these represent Booleans, but I didn't think that would go over well.