Add literals highlighting
This commit is contained in:
parent
b9376ccd35
commit
b836117a21
|
@ -1,3 +1,9 @@
|
||||||
(comment) @comment
|
(comment) @comment
|
||||||
|
|
||||||
|
; Literals {{{
|
||||||
|
(nil_literal) @constant.builtin
|
||||||
|
(integer_literal) @number
|
||||||
|
(string_literal) @string
|
||||||
|
; }}}
|
||||||
|
|
||||||
; vim: sw=2 foldmethod=marker
|
; vim: sw=2 foldmethod=marker
|
||||||
|
|
6
test/highlight/literals.tig
Normal file
6
test/highlight/literals.tig
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
nil
|
||||||
|
/* <- constant.builtin */
|
||||||
|
42
|
||||||
|
/* <- number */
|
||||||
|
"Hello World!"
|
||||||
|
/* <- string */
|
Loading…
Reference in a new issue