Skip to content

Commit 07b10c4

Browse files
Remove commented ts highlights and add highlights for subscript and superscript.
1 parent 69220ca commit 07b10c4

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

lua/orgmode/colors/highlights.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ function M.link_ts_highlights()
1818
OrgTSHeadlineLevel8 = 'OrgHeadlineLevel8',
1919
OrgTSBullet = 'Identifier',
2020
OrgTSCheckbox = 'PreProc',
21+
orgTSSubscript = 'Comment',
22+
orgTSSuperscript = 'Comment',
2123
OrgTSCheckboxHalfChecked = 'OrgTSCheckbox',
2224
OrgTSCheckboxUnchecked = 'OrgTSCheckbox',
2325
OrgTSCheckboxChecked = 'OrgTSCheckbox',

queries/org/highlights.scm

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
((timestamp) @timestamp (#match? @timestamp "^\\<.*$")) @OrgTSTimestampActive
22
((timestamp) @timestamp_inactive (#match? @timestamp_inactive "^\\[.*$")) @OrgTSTimestampInactive
3-
; ((markup) @markup_bold (#match? @markup_bold "^\\s*\\*.*\\*$")) @text.strong
4-
; ((markup) @markup_italic (#match? @markup_italic "^\\s*\\/.*\\/$")) @text.emphasis
5-
; ((markup) @markup_underline (#match? @markup_underline "^\\s*_.*_$")) @TSUnderline
6-
; ((markup) @markup_code (#match? @markup_code "^\\s*\\~.*\\~$")) @String
7-
; ((markup) @markup_verbatim (#match? @markup_verbatim "^\\s*\\=.*\\=$")) @String
8-
; ((markup) @markup_strike (#match? @markup_strike "^\\s*\\+.*\\+$")) @text.strike
93
(headline (stars) @stars (#eq? @stars "*")) @OrgTSHeadlineLevel1
104
(headline (stars) @stars (#eq? @stars "**")) @OrgTSHeadlineLevel2
115
(headline (stars) @stars (#eq? @stars "***")) @OrgTSHeadlineLevel3
@@ -14,6 +8,8 @@
148
(headline (stars) @stars (#eq? @stars "******")) @OrgTSHeadlineLevel6
159
(headline (stars) @stars (#eq? @stars "*******")) @OrgTSHeadlineLevel7
1610
(headline (stars) @stars (#eq? @stars "********")) @OrgTSHeadlineLevel8
11+
(subscript) @OrgTSSubscript
12+
(superscript) @OrgTSSuperscript
1713
(bullet) @OrgTSBullet
1814
(checkbox) @OrgTSCheckbox
1915
((checkbox) @check (#eq? @check "\[-\]")) @OrgTSCheckboxHalfChecked

0 commit comments

Comments
 (0)