Highlight comments in c, cpp, cmake and llvm (#1309)

Also, reuse the c injections in glsl
This commit is contained in:
Sebastian Neubauer 2021-12-20 03:42:23 +01:00 committed by GitHub
parent e72786df8e
commit 23091c9d29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 3 deletions

View File

@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))

View File

@ -0,0 +1,4 @@
((line_comment) @injection.content
(#set! injection.language "comment"))
((bracket_comment) @injection.content
(#set! injection.language "comment"))

View File

@ -0,0 +1 @@
; inherits: c

View File

@ -1,5 +1,4 @@
; inherits: c
((preproc_arg) @injection.content ((preproc_arg) @injection.content
(#set! injection.language "glsl")) (#set! injection.language "glsl"))
((comment) @injection.content
(#set! injection.language "comment"))

View File

@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))