From edf3c70c302aef628dc1a63895e2492d34e82507 Mon Sep 17 00:00:00 2001 From: Luke Jones Date: Sat, 18 Dec 2021 17:41:32 +1300 Subject: Add dart lsp config and queries (#1250) * Add language: dart The setup requires that dart be in the users path, such as: ``` export PATH="$HOME/Android/flutter/bin/cache/dart-sdk/bin/:$PATH" ``` Refactor the dart highlights * lang: dart: add indents and locals * lang: dart: corrections to local scope Co-authored-by: Blaž Hrastnik --- runtime/queries/dart/locals.scm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 runtime/queries/dart/locals.scm (limited to 'runtime/queries/dart/locals.scm') diff --git a/runtime/queries/dart/locals.scm b/runtime/queries/dart/locals.scm new file mode 100644 index 00000000..629838e5 --- /dev/null +++ b/runtime/queries/dart/locals.scm @@ -0,0 +1,20 @@ +; Scopes +;------- + +[ + (block) + (try_statement) + (catch_clause) + (finally_clause) +] @local.scope + +; Definitions +;------------ + +(class_definition + body: (_) @local.definition) + +; References +;------------ + +(identifier) @local.reference -- cgit v1.2.3-70-g09d2