ydb-platform / ydb

YDB is an open source Distributed SQL Database that combines high availability and scalability with strong consistency and ACID transactions
https://ydb.tech
Apache License 2.0
3.97k stars 547 forks source link

passing quotes and slashed in variables ya.make #7638

Closed OrlovPavel closed 1 month ago

OrlovPavel commented 2 months ago

I have a PR. It is about migrating yql grammar to antlr4 parser and I have some issue with ya.make file. I want to set the following variable:

SET(GRAMMAR_STRING_CORE_DOUBLE "\"~([\"\\\\]) | (BACKSLASH .)\"")

Actually, I want the following value to occur in the generated file.:

~(["\\]) | (BACKSLASH .)

But I didn't manage to correctly pass a double quote and a backslash to the Python script in build/scripts/configure_file.py. So, how can I do it in Ya Make?

asmyasnikov commented 1 month ago

Fixed in 8fbad371206713c1a4e15a89dc2b43d99e0e64c9