diff --git a/queries/highlights.scm b/queries/highlights.scm index 2135031..cf22b13 100644 --- a/queries/highlights.scm +++ b/queries/highlights.scm @@ -1,3 +1,9 @@ (comment) @comment +; Literals {{{ +(nil_literal) @constant.builtin +(integer_literal) @number +(string_literal) @string +; }}} + ; vim: sw=2 foldmethod=marker diff --git a/test/highlight/literals.tig b/test/highlight/literals.tig new file mode 100644 index 0000000..95078d7 --- /dev/null +++ b/test/highlight/literals.tig @@ -0,0 +1,6 @@ +nil +/* <- constant.builtin */ +42 +/* <- number */ +"Hello World!" +/* <- string */