Skip to content

Conversation

Delta456
Copy link

Implements #70

@Delta456
Copy link
Author

Delta456 commented Apr 15, 2024

This is not complete but I have made a draft for other people to help me figure out implement this.

To run this ./freeze --lannguage py,go main.py

main.py

def main():
   print('Hello world')
   

fmt.Println("Hello world")

EDIT: Read the below comment.

@Delta456
Copy link
Author

I need more test cases. My implementation works.

  • ./freeze --language jinja,html file.jinja

image

  • ./freeze --language html file.jinja

image

  • ./freeze --language jinja file.jinja

image

@Delta456
Copy link
Author

As discussed in alecthomas/chroma#960 (comment), lexers.DelegatingLexer only supports syntaxes which have indeed have something in common. The implementing is working and finalised.

@Delta456 Delta456 marked this pull request as ready for review April 17, 2024 14:10
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.

2 participants