Add literals highlighting
This commit is contained in:
parent
b9376ccd35
commit
b836117a21
2 changed files with 12 additions and 0 deletions
|
|
@ -1,3 +1,9 @@
|
|||
(comment) @comment
|
||||
|
||||
; Literals {{{
|
||||
(nil_literal) @constant.builtin
|
||||
(integer_literal) @number
|
||||
(string_literal) @string
|
||||
; }}}
|
||||
|
||||
; 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…
Add table
Add a link
Reference in a new issue