diff options
| author | Akin Sowemimo <akin.sowemimo@gmail.com> | 2021-07-01 16:55:42 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.lauf@yahoo.de> | 2021-07-02 01:56:55 +0200 |
| commit | 106eb8e5008691a1e1969c213c2d12a350416347 (patch) | |
| tree | c99471b7d126f4f0ed109ce3e737b347dfde7004 /queries | |
| parent | Update queries/hcl/highlights.scm (diff) | |
| download | nvim-treesitter-106eb8e5008691a1e1969c213c2d12a350416347.tar nvim-treesitter-106eb8e5008691a1e1969c213c2d12a350416347.tar.gz nvim-treesitter-106eb8e5008691a1e1969c213c2d12a350416347.tar.bz2 nvim-treesitter-106eb8e5008691a1e1969c213c2d12a350416347.tar.lz nvim-treesitter-106eb8e5008691a1e1969c213c2d12a350416347.tar.xz nvim-treesitter-106eb8e5008691a1e1969c213c2d12a350416347.tar.zst nvim-treesitter-106eb8e5008691a1e1969c213c2d12a350416347.zip | |
feat(dart): add function call expression highlight
This is a work around since currently the upstream grammar does not
support a call_expression
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/dart/highlights.scm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/queries/dart/highlights.scm b/queries/dart/highlights.scm index 3e23d6555..d873c9e52 100644 --- a/queries/dart/highlights.scm +++ b/queries/dart/highlights.scm @@ -3,11 +3,17 @@ ; Methods ; -------------------- (super) @function + ; TODO: add method/call_expression to grammar and ; distinguish method call from variable access (function_expression_body (identifier) @function) ; ((identifier)(selector (argument_part)) @function) +; NOTE: This query is a bit of a work around for the fact that the dart grammar doesn't +; specifically identify a node as a function call +(((identifier) @function (#match? @function "^_?[a-z]")) + . (selector . (argument_part))) @function + ; Annotations ; -------------------- (annotation |
