-
Notifications
You must be signed in to change notification settings - Fork 629
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
FrontMatter: new subparser parser run from Markdown parser #3311
Conversation
86516fc
to
fd0b229
Compare
Signed-off-by: Masatake YAMATO <[email protected]>
Signed-off-by: Masatake YAMATO <[email protected]>
a113724
to
2cbb25f
Compare
Codecov Report
@@ Coverage Diff @@
## master #3311 +/- ##
==========================================
+ Coverage 85.31% 85.33% +0.02%
==========================================
Files 212 214 +2
Lines 49987 50086 +99
==========================================
+ Hits 42645 42740 +95
- Misses 7342 7346 +4
Continue to review full report at Codecov.
|
…tream By calling makePromise() with passing (0, 0, 0, 0) as arguments specifying the area, you can run a guest parser on the whole the area of the current input file. Internally, the main part reuses the current input stream for the guest parser. I found there is a case that it is impossible to reuse the current input stream in the guest parser; the current input stream is opened as as FILE based MIO and the guest parser needs a MEMORY based MIO. In this case, the main part should abort reusing and open a new MEMORY based MIO derived from the underlying FILE based MIO. However, reopening is not easy because the main part has no reliable way for calculating the area information for the MEMORY based MIO. The calculation is needed because the caller just passes (0, 0, 0, 0) as the area information. Till we can find a good way for calculating the area, what we can do is just printing warnings. Signed-off-by: Masatake YAMATO <[email protected]>
…exible Signed-off-by: Masatake YAMATO <[email protected]>
They were derrived from ansibleplaybook.c. Signed-off-by: Masatake YAMATO <[email protected]>
Signed-off-by: Masatake YAMATO <[email protected]>
In this version, just extracting "foo" in "title: foo" written in Yaml. JSON(;;;) and TOML(+++) are not supported yet. Close universal-ctags#3032. Signed-off-by: Masatake YAMATO <[email protected]>
How is this meant to be used? I tried several ways but the Are there currently efforts to extend parsing to full YAML? |
Could you show the input file? I also want to know the name of the file. |
Just a quick try with a file name ---
title: Some title
---
# Foo
This is a test. I am running on version 6.1.0. |
You may have to add |
Indeed, it works with |
In this version, just extracting "foo" in "title: foo" written
in Yaml. JSON(;;;) and TOML(+++) are not supported yet.
Tagging
a
,b
, andc
intags: [ a b c ]
is another TODO item.Much more work is needed in the Yaml parser.
Close #3032.