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 parsing + prettier support for @param in {% doc %} tags #646

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Dec 11, 2024

  1. Add Parsing + Prettier support for {% doc %} open and close tags

    Implement fallbackNode for LiquidDoc
    
    Enhance Liquid HTML Parser: Introduce paramNode and update CST tests
    
    - Added `paramNode` to the grammar for LiquidDoc, allowing for parameter definitions in doc tags.
    - Updated the parsing logic to recognize and handle `@param` syntax correctly.
    - Modified CST tests to validate the new structure, ensuring proper identification of `LiquidDocParamNode` and associated text nodes.
    - Refactored existing tests to align with the new parsing rules and improve accuracy.
    
    Introduce LiquidDocCST and LiquidDocConcrete
    
    Add liquidDocParam handling to stage2 AST
    
    - Updated the `toLiquidDocAST` function to include handling for `@param` syntax and fallback text node
    
    Prettier - Add CSS Handling
    
    Enhance LiquidCompletionParams: Add handling for LiquidDocParamNode in LiquidCompletionParams
    
    Add LiquidCST to union of LiquidHTMLCST types
    
    Add LiquidDocParamNode case to print function
    
    Add basic prettier support for doc tag
    jamesmengo committed Dec 11, 2024
    Configuration menu
    Copy the full SHA
    e7ed99d View commit details
    Browse the repository at this point in the history