highlight calls to erlang modules as types (#5)

* highlight calls to erlang modules as types

* Add test

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
This commit is contained in:
Michael Davis 2021-10-12 16:11:14 -05:00 committed by GitHub
parent 7ae20df181
commit 24a9eaeaa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View File

@ -64,6 +64,10 @@
(alias) @type
(call
target: (dot
left: (atom) @type))
(char) @constant
; Quoted content

View File

@ -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