Add an option to make it compatible with "goyacc"#14
Add an option to make it compatible with "goyacc"#14YT315 wants to merge 1 commit intobabyraging:masterfrom
Conversation
|
Hi! Thank you for the PR! We could add a new feature to support Golang as the embedded language. However, this PR is not enough since it only handles the union parsing part and not the syntax highlight part. That is, if we want to add a new embedded language, we need to add it in full; which means we need to handle also the syntax highlighting inside the %{ %} block and all { } action blocks. At this moment, the declaration of an embedded language is "hard coded" in the Lines 80 to 86 in 0379b1b If you can find an elegant way to dynamicly change the syntax highlight behavior for the embedded language that would be great! |
|
Thank you for your reply: Let me try ! |
|
I have recently been using this plugin with goyacc and would love this feature. If it only supported the union that would be a large improvement independent of the other concerns. |
|
+1 to at least fixing the union parsing; it doesn't complain about My Go code in production blocks; indeed, they seem to be quite nicely syntax highlighted. |

Added a little modification so that it can parse the "union" of golang