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

Add syntax highlight variant based on CommonMark using external parser #328

Draft
wants to merge 34 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
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 May 12, 2020
f5691af
Initialize minimal Rust library build environment
alerque May 14, 2020
18cfe7c
Depend on pulldown-cmark crate
alerque May 14, 2020
80bb3aa
Depend on mlua crate
alerque May 14, 2020
85d1b6b
Tell Git to ignore Cargo's build directory
alerque May 14, 2020
0caa512
Tell Git to ignore Cargo's build directory
alerque May 14, 2020
2557a7a
Add basic functions to test module build
alerque May 14, 2020
dbd3032
Compile against luajit, default in Neovim
alerque May 15, 2020
e1f6e5d
Round trip a string from Neovim -> Rust -> Neovim
alerque May 15, 2020
ae32d68
Render and return HTML for passed Markdown
alerque May 15, 2020
8333816
Add test for expected output of HTML render
alerque May 15, 2020
cbb90d9
Pass content back and forth from syntax file using Lua
alerque May 15, 2020
ec6e406
Add function that returns Lua table of tag offsets
alerque May 15, 2020
eab0588
Break return data up into table for easy Lua processing
alerque May 15, 2020
9638c5a
Echo tag map on syntax load
alerque May 15, 2020
b9a3c40
Re-arrange to be more ideomatic Lua plugin
alerque May 15, 2020
3be9ad7
Setup Lua to actuall pass highlights to Vim
alerque May 16, 2020
5679e50
Merge branch 'mlua' into commonmark
alerque May 16, 2020
2ba541a
Depend on pyo3 crate so we can make a Python native module
alerque May 16, 2020
433c3a9
Break Rust dependencies up by feature
alerque May 16, 2020
e158f79
Sketch out makefile for module builds (debug mode for now)
alerque May 16, 2020
1087c52
Reorganize library to conditionally generate different modules
alerque May 16, 2020
61e0679
Bring up both to_html() and get_offsets() in both modules
alerque May 16, 2020
f2ad545
Rewire vim to use Lua module again
alerque May 16, 2020
4fb57b2
Fix linked module paths
alerque May 16, 2020
f800b23
Actually parse buffer data instead of dummy strings
alerque May 16, 2020
4a529a7
Attach to changes as they happen and fix byte offsets (maybe)
alerque May 16, 2020
d2c51d9
Handle inline syntax that spans lines
alerque May 16, 2020
6972c7d
Fix offsets (again) and add move color group management to its own file
alerque May 16, 2020
ebe2545
Number Lua table from 1 so we don't drop first event
alerque May 16, 2020
1bcdc25
Add useful debug function to inspect Lua tables
alerque May 16, 2020
648b66f
Handle more event & tag types
alerque May 16, 2020
4243a4d
Pass on all possible non-zero-width tag and event types
alerque May 17, 2020
f6138bf
Link all highlight groups to something
alerque May 17, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
*.swp
tags
doc/tags
/target
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*.so
/target-lua
/target-python

Loading