From 78b54eb7f6a9956d25a3911fa0dfd0cabfe2a4c5 Mon Sep 17 00:00:00 2001 From: Pham Huy Hoang Date: Wed, 3 May 2023 19:07:59 +0900 Subject: chore(injections)!: update injection syntax to 0.9 Since 0.9, @lang syntax is still available as fallback but will soon be deprecated. Because of that, new syntax should be adopted once 0.9 becomes the baseline requirements for nvim-treesitter - update health check - update doc --- queries/surface/injections.scm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'queries/surface') diff --git a/queries/surface/injections.scm b/queries/surface/injections.scm index 928977a34..0ee100999 100644 --- a/queries/surface/injections.scm +++ b/queries/surface/injections.scm @@ -1,8 +1,10 @@ ; Surface expressions and components are Elixir code -[ +([ (expression_value) (component_name) -] @elixir +] @injection.content + (#set! injection.language "elixir")) ; Surface comments are nvim-treesitter comments -(comment) @comment +((comment) @injection.content + (#set! injection.language "comment")) -- cgit v1.3.1