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

Quarto: new parser #3677

Merged
merged 3 commits into from
Mar 27, 2023
Merged

Quarto: new parser #3677

merged 3 commits into from
Mar 27, 2023

Conversation

masatake
Copy link
Member

This parser is based on the RMarkdown parser.

The way of extracting chunk labels is enhanced for Quarto.

A. recognizing unexecuted blocks like

   ```{{python}}
   ...
   ```

Quarto makes an anonymous tag for the code block.

B. recognizing " label: " in code blocks like

   ```{python}
   #| label: optimization-techniques
   ...
   ```

Quarto extracts "optimization-techniques" as a tag.

Add new methods, (* notifyCodeBlockLine) and
(* notifyEndOfCodeBlock).

These methods allows sub parsers to analyze inside code blocks.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
@masatake masatake mentioned this pull request Mar 25, 2023
This parser is based on the RMarkdown parser.

The way of extracting chunk labels is enhanced for Quarto.

A. recognizing unexecuted blocks like

       ```{{python}}
       ...
       ```
   Quarto makes an anonymous tag for the code block.

B. recognizing " label: " in code blocks like

       ```{python}
       #| label: optimization-techniques
       ...
       ```
   Quarto extracts "optimization-techniques" as a tag.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
@codecov
Copy link

codecov bot commented Mar 25, 2023

Codecov Report

Patch coverage: 88.09% and no project coverage change.

Comparison is base (af30abc) 82.87% compared to head (94d623f) 82.88%.

Additional details and impacted files
@@           Coverage Diff            @@
##           master    #3677    +/-   ##
========================================
  Coverage   82.87%   82.88%            
========================================
  Files         223      224     +1     
  Lines       54566    54684   +118     
========================================
+ Hits        45224    45327   +103     
- Misses       9342     9357    +15     
Impacted Files Coverage Δ
parsers/quarto.c 82.35% <82.35%> (ø)
parsers/markdown.c 99.51% <100.00%> (+0.05%) ⬆️
parsers/rmarkdown.c 96.55% <100.00%> (+0.80%) ⬆️

... and 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@masatake masatake merged commit 8a4f1ae into universal-ctags:master Mar 27, 2023
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

1 participant