Open Delta456 opened 7 months ago
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.
I need more test cases. My implementation works.
./freeze --language jinja,html file.jinja
./freeze --language html file.jinja
./freeze --language jinja file.jinja
As discussed in https://github.com/alecthomas/chroma/issues/960#issuecomment-2061041222, lexers.DelegatingLexer
only supports syntaxes which have indeed have something in common. The implementing is working and finalised.
Implements https://github.com/charmbracelet/freeze/issues/70