diff options
| author | Emmanuel Briot <briot.emmanuel@gmail.com> | 2023-02-14 11:26:04 +0100 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2023-02-14 11:40:52 +0100 |
| commit | 4db66966720541c2286dc7451be3c8ff9f273bb9 (patch) | |
| tree | 281ee8741e721efd337a078a1848376b00ada7d8 | |
| parent | Update parsers: diff, norg, racket, teal (diff) | |
| download | nvim-treesitter-4db66966720541c2286dc7451be3c8ff9f273bb9.tar nvim-treesitter-4db66966720541c2286dc7451be3c8ff9f273bb9.tar.gz nvim-treesitter-4db66966720541c2286dc7451be3c8ff9f273bb9.tar.bz2 nvim-treesitter-4db66966720541c2286dc7451be3c8ff9f273bb9.tar.lz nvim-treesitter-4db66966720541c2286dc7451be3c8ff9f273bb9.tar.xz nvim-treesitter-4db66966720541c2286dc7451be3c8ff9f273bb9.tar.zst nvim-treesitter-4db66966720541c2286dc7451be3c8ff9f273bb9.zip | |
ada(highlights,folds,locals): update to parser changes
| -rw-r--r-- | lockfile.json | 2 | ||||
| -rw-r--r-- | queries/ada/folds.scm | 3 | ||||
| -rw-r--r-- | queries/ada/highlights.scm | 3 | ||||
| -rw-r--r-- | queries/ada/locals.scm | 4 |
4 files changed, 7 insertions, 5 deletions
diff --git a/lockfile.json b/lockfile.json index 46754d99c..14a046c8f 100644 --- a/lockfile.json +++ b/lockfile.json @@ -1,6 +1,6 @@ { "ada": { - "revision": "e9e2ec9d3b6302e9b455901bec00036e29d1c121" + "revision": "42cc2eb141529b03a91c18ec8646a0a58fb111ba" }, "agda": { "revision": "80ea622cf952a0059e168e5c92a798b2f1925652" diff --git a/queries/ada/folds.scm b/queries/ada/folds.scm index f6f908483..b8b5735bb 100644 --- a/queries/ada/folds.scm +++ b/queries/ada/folds.scm @@ -2,7 +2,8 @@ ;; za toggles folding a package, subprogram, if statement or loop [ - (package_specification) + (package_declaration) + (generic_package_declaration) (package_body) (subprogram_body) (block_statement) diff --git a/queries/ada/highlights.scm b/queries/ada/highlights.scm index 0adb377ab..884203791 100644 --- a/queries/ada/highlights.scm +++ b/queries/ada/highlights.scm @@ -105,9 +105,10 @@ ;; Highlight the name of subprograms (procedure_specification name: (_) @function) (function_specification name: (_) @function) -(package_specification name: (_) @function) +(package_declaration name: (_) @function) (package_body name: (_) @function) (generic_instantiation name: (_) @function) +(entry_declaration . (identifier) @function) ;; Some keywords should take different categories depending on the context (use_clause "use" @include "type" @include) diff --git a/queries/ada/locals.scm b/queries/ada/locals.scm index a1460153c..b36d3718c 100644 --- a/queries/ada/locals.scm +++ b/queries/ada/locals.scm @@ -3,7 +3,7 @@ ;; See https://tree-sitter.github.io/tree-sitter/syntax-highlighting#local-variables (compilation) @scope -(package_specification) @scope +(package_declaration) @scope (package_body) @scope (subprogram_declaration) @scope (subprogram_body) @scope @@ -12,7 +12,7 @@ (with_clause (identifier) @definition.import) (procedure_specification name: (_) @definition.function) (function_specification name: (_) @definition.function) -(package_specification name: (_) @definition.var) +(package_declaration name: (_) @definition.var) (package_body name: (_) @definition.var) (generic_instantiation . name: (_) @definition.var) (component_declaration . (identifier) @definition.var) |
