-
Notifications
You must be signed in to change notification settings - Fork 62
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
Add syntax highlight variant based on CommonMark using external parser #328
Draft
alerque
wants to merge
34
commits into
master
Choose a base branch
from
commonmark
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
5e0bfa8
chore: Relegate current syntax to legacy mode
alerque f5691af
Initialize minimal Rust library build environment
alerque 18cfe7c
Depend on pulldown-cmark crate
alerque 80bb3aa
Depend on mlua crate
alerque 85d1b6b
Tell Git to ignore Cargo's build directory
alerque 0caa512
Tell Git to ignore Cargo's build directory
alerque 2557a7a
Add basic functions to test module build
alerque dbd3032
Compile against luajit, default in Neovim
alerque e1f6e5d
Round trip a string from Neovim -> Rust -> Neovim
alerque ae32d68
Render and return HTML for passed Markdown
alerque 8333816
Add test for expected output of HTML render
alerque cbb90d9
Pass content back and forth from syntax file using Lua
alerque ec6e406
Add function that returns Lua table of tag offsets
alerque eab0588
Break return data up into table for easy Lua processing
alerque 9638c5a
Echo tag map on syntax load
alerque b9a3c40
Re-arrange to be more ideomatic Lua plugin
alerque 3be9ad7
Setup Lua to actuall pass highlights to Vim
alerque 5679e50
Merge branch 'mlua' into commonmark
alerque 2ba541a
Depend on pyo3 crate so we can make a Python native module
alerque 433c3a9
Break Rust dependencies up by feature
alerque e158f79
Sketch out makefile for module builds (debug mode for now)
alerque 1087c52
Reorganize library to conditionally generate different modules
alerque 61e0679
Bring up both to_html() and get_offsets() in both modules
alerque f2ad545
Rewire vim to use Lua module again
alerque 4fb57b2
Fix linked module paths
alerque f800b23
Actually parse buffer data instead of dummy strings
alerque 4a529a7
Attach to changes as they happen and fix byte offsets (maybe)
alerque d2c51d9
Handle inline syntax that spans lines
alerque 6972c7d
Fix offsets (again) and add move color group management to its own file
alerque ebe2545
Number Lua table from 1 so we don't drop first event
alerque 1bcdc25
Add useful debug function to inspect Lua tables
alerque 648b66f
Handle more event & tag types
alerque 4243a4d
Pass on all possible non-zero-width tag and event types
alerque f6138bf
Link all highlight groups to something
alerque File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
*.swp | ||
tags | ||
doc/tags | ||
/target | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.