Add literals highlighting

This commit is contained in:
Bruno BELANYI 2022-06-02 17:32:37 +02:00
parent b9376ccd35
commit b836117a21
2 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,9 @@
(comment) @comment
; Literals {{{
(nil_literal) @constant.builtin
(integer_literal) @number
(string_literal) @string
; }}}
; vim: sw=2 foldmethod=marker

View file

@ -0,0 +1,6 @@
nil
/* <- constant.builtin */
42
/* <- number */
"Hello World!"
/* <- string */