Skip to content

Commit d826924

Browse files
Update ts grammar revision and highlight latex blocks
1 parent 7bb47fd commit d826924

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

lua/orgmode/colors/highlights.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ function M.link_ts_highlights()
3030
OrgTSComment = 'Comment',
3131
OrgTSDirective = 'Comment',
3232
OrgTSBlock = 'Comment',
33+
OrgTSLatex = 'Statement',
3334
}
3435

3536
for src, def in pairs(links) do

lua/orgmode/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
_G.orgmode = _G.orgmode or {}
2-
local ts_revision = 'aeacac619457a187bb202b9dfc58541232ed4a25'
2+
local ts_revision = 'f78edf1ab65c854ef25356c2a96222e87d15c5c5'
33
local setup_ts_grammar_used = false
44
local instance = nil
55

queries/org/highlights.scm

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@
1515
(block "#+begin_" @OrgTSBlock "#+end_" @OrgTSBlock "str" @OrgTSBlock)
1616
(block name: (expr) @OrgTSBlock)
1717
(block parameter: (expr) @OrgTSBlock)
18-
(property_drawer) @OrgTSPropertyDrawer
19-
(drawer) @OrgTSDrawer
20-
(tag) @OrgTSTag
21-
(plan) @OrgTSPlan
22-
(comment) @OrgTSComment
23-
(directive) @OrgTSDirective
18+
(property_drawer) @OrgTSPropertyDrawer
19+
(latex_env) @OrgTSLatex
20+
(drawer) @OrgTSDrawer
21+
(tag) @OrgTSTag
22+
(plan) @OrgTSPlan
23+
(comment) @OrgTSComment
24+
(directive) @OrgTSDirective
2425
(ERROR) @LspDiagnosticsUnderlineError

0 commit comments

Comments
 (0)