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

nested comments #594

Open
backtracking opened this issue Oct 22, 2024 · 0 comments
Open

nested comments #594

backtracking opened this issue Oct 22, 2024 · 0 comments

Comments

@backtracking
Copy link

Nested comments are accepted in Koka source code, but then are copied verbatim in C source code, resulting in errors after the first closing */. For instance, this Koka source code

/* a /* b */ fun main () 1 */
fun main() 42

results in the following syntax error:

test.h: In function ‘main’:
test.h:30:26: error: expected declaration specifiers before numeric constant
   30 | /* a /* b */ fun main () 1 */
      |                          ^

I'm using Koka version 3.1.2.

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

No branches or pull requests

1 participant