diff --git a/queries/highlights.scm b/queries/highlights.scm index bb88e45..fb4518d 100644 --- a/queries/highlights.scm +++ b/queries/highlights.scm @@ -64,6 +64,10 @@ (alias) @type +(call + target: (dot + left: (atom) @type)) + (char) @constant ; Quoted content diff --git a/test/highlight/calls.ex b/test/highlight/calls.ex index cc0a144..c4ff8d0 100644 --- a/test/highlight/calls.ex +++ b/test/highlight/calls.ex @@ -79,3 +79,12 @@ Enum.map([1, 2], fn x -> end) # <- keyword # ^ punctuation.bracket + +:erlang.abs(-1) +# ^ type +# ^ operator +# ^ function +# ^ punctuation.bracket +# ^ operator +# ^ number +# ^ punctuation.bracket