aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Horn2022-08-24 06:56:42 +0000
committerMichael Davis2022-08-24 16:55:47 +0000
commit5806db1e5cd52897bf0cda4421629eec207a621c (patch)
treeedd075257070c943f4f932a4c5dfdf1251fe201f
parentf5c00b9bc9bb92238893e0a82c7d678d891aa624 (diff)
Julia queries: limit markdown highlighting to docstrings
-rw-r--r--runtime/queries/julia/injections.scm15
1 files changed, 14 insertions, 1 deletions
diff --git a/runtime/queries/julia/injections.scm b/runtime/queries/julia/injections.scm
index caed916f..5b2e7584 100644
--- a/runtime/queries/julia/injections.scm
+++ b/runtime/queries/julia/injections.scm
@@ -1,5 +1,18 @@
(
- (string_literal) @injection.content
+ (source_file
+ (
+ (string_literal) @injection.content
+ [
+ (module_definition)
+ (function_definition)
+ (macro_definition)
+ (primitive_definition)
+ (abstract_definition)
+ (struct_definition)
+ (assignment_expression)
+ (const_statement)
+ ]
+ ))
(#set! injection.language "markdown"))
(