A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/sogaiu/tree-sitter-clojure/issues/52 below:

Add an `string_contents` node · Issue #52 · sogaiu/tree-sitter-clojure · GitHub

First, thanks for this great work - I like it!

So, I am working on injecting JS into cljs code like this: (js* "console.log(~{});", 10) (that's a valid ClojureScript code). This will parse as (sym_lit ... (string_lit) (num_lit)).

What I want is to inject a Javascript grammar into this string_lit, but unfortunately, this doesn't work because what will be captured by the JS grammar is "console.log(~{});", and not only the inner contents.

Is it easy/possible to break down (string_lit) into "\"" (string_contents) "\""?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4