diff options
author | Luke Jones | 2021-12-18 04:41:32 +0000 |
---|---|---|
committer | GitHub | 2021-12-18 04:41:32 +0000 |
commit | edf3c70c302aef628dc1a63895e2492d34e82507 (patch) | |
tree | a7719bb14513747d1fb6c868b473fa36823547f9 /runtime/queries/dart/locals.scm | |
parent | 0683f0a20ae1c1ce3e7788e303c468767381e6fd (diff) |
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 <blaz@mxxn.io>
Diffstat (limited to 'runtime/queries/dart/locals.scm')
-rw-r--r-- | runtime/queries/dart/locals.scm | 20 |
1 files changed, 20 insertions, 0 deletions
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 |