aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRiley Bruins <ribru17@hotmail.com>2023-09-21 14:28:01 -0700
committerChristian Clason <c.clason@uni-graz.at>2023-11-11 10:14:43 +0100
commit075a64addc33390028ea124a1046a43497f05cd1 (patch)
treedfe9899f8e087e0059e72a878b5f616bb0952085
parentUpdate parsers: bitbake, groovy, janet_simple, liquidsoap, markdown, markdown... (diff)
downloadnvim-treesitter-075a64addc33390028ea124a1046a43497f05cd1.tar
nvim-treesitter-075a64addc33390028ea124a1046a43497f05cd1.tar.gz
nvim-treesitter-075a64addc33390028ea124a1046a43497f05cd1.tar.bz2
nvim-treesitter-075a64addc33390028ea124a1046a43497f05cd1.tar.lz
nvim-treesitter-075a64addc33390028ea124a1046a43497f05cd1.tar.xz
nvim-treesitter-075a64addc33390028ea124a1046a43497f05cd1.tar.zst
nvim-treesitter-075a64addc33390028ea124a1046a43497f05cd1.zip
feat: highlight regular latex text to maintain consistency with boldfaced and italic text
-rw-r--r--queries/latex/highlights.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/queries/latex/highlights.scm b/queries/latex/highlights.scm
index d0283c2e7..10e02ed1b 100644
--- a/queries/latex/highlights.scm
+++ b/queries/latex/highlights.scm
@@ -184,6 +184,9 @@
(#eq? @_name "\\frametitle"))
;; Formatting
+(text_mode
+ content: (curly_group (_) @text))
+
((generic_command
command: (command_name) @_name
arg: (curly_group (_) @text.emphasis))