aboutsummaryrefslogtreecommitdiffstats
path: root/queries/elixir/highlights.scm
diff options
context:
space:
mode:
authorConnor Lay (Clay) <connorlay@users.noreply.github.com>2021-08-01 13:09:41 -0600
committerGitHub <noreply@github.com>2021-08-01 19:09:41 +0000
commit6944173e8778795863eda56a3bd2f98efdd82c10 (patch)
treef8e5dc111b93c3e7f845c8374f39aba51c41d8cf /queries/elixir/highlights.scm
parentCI: don't require to have parsers installed to check for injections (diff)
downloadnvim-treesitter-6944173e8778795863eda56a3bd2f98efdd82c10.tar
nvim-treesitter-6944173e8778795863eda56a3bd2f98efdd82c10.tar.gz
nvim-treesitter-6944173e8778795863eda56a3bd2f98efdd82c10.tar.bz2
nvim-treesitter-6944173e8778795863eda56a3bd2f98efdd82c10.tar.lz
nvim-treesitter-6944173e8778795863eda56a3bd2f98efdd82c10.tar.xz
nvim-treesitter-6944173e8778795863eda56a3bd2f98efdd82c10.tar.zst
nvim-treesitter-6944173e8778795863eda56a3bd2f98efdd82c10.zip
Feature: Add Surface language and integrate with Elixir (#1645)
* Add initial surface highlights & injections * Additional surface highlights * Filetype detection, fix injections * Fix Elixir function highlight when left is an identifier * Add surface parser * Fix comment highlights * Surface folds, indents, better highlights * Highlight surface components & directives * Restore comments Elixir injections
Diffstat (limited to 'queries/elixir/highlights.scm')
-rw-r--r--queries/elixir/highlights.scm4
1 files changed, 4 insertions, 0 deletions
diff --git a/queries/elixir/highlights.scm b/queries/elixir/highlights.scm
index bcbc43918..51c57494d 100644
--- a/queries/elixir/highlights.scm
+++ b/queries/elixir/highlights.scm
@@ -78,6 +78,10 @@
remote: [(atom) (module)] @type
function: (function_identifier) @method)
+(dot_call
+ remote: (identifier) @variable
+ function: (function_identifier) @method)
+
"fn" @keyword.function
; def, defp, defguard, ... everything that starts with def