Skip to content

Commit

Permalink
Remove commented ts highlights and add highlights for subscript and s…
Browse files Browse the repository at this point in the history
…uperscript.
  • Loading branch information
kristijanhusak committed Nov 22, 2021
1 parent 69220ca commit 07b10c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 2 additions & 0 deletions lua/orgmode/colors/highlights.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ function M.link_ts_highlights()
OrgTSHeadlineLevel8 = 'OrgHeadlineLevel8',
OrgTSBullet = 'Identifier',
OrgTSCheckbox = 'PreProc',
orgTSSubscript = 'Comment',
orgTSSuperscript = 'Comment',
OrgTSCheckboxHalfChecked = 'OrgTSCheckbox',
OrgTSCheckboxUnchecked = 'OrgTSCheckbox',
OrgTSCheckboxChecked = 'OrgTSCheckbox',
Expand Down
8 changes: 2 additions & 6 deletions queries/org/highlights.scm
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
((timestamp) @timestamp (#match? @timestamp "^\\<.*$")) @OrgTSTimestampActive
((timestamp) @timestamp_inactive (#match? @timestamp_inactive "^\\[.*$")) @OrgTSTimestampInactive
; ((markup) @markup_bold (#match? @markup_bold "^\\s*\\*.*\\*$")) @text.strong
; ((markup) @markup_italic (#match? @markup_italic "^\\s*\\/.*\\/$")) @text.emphasis
; ((markup) @markup_underline (#match? @markup_underline "^\\s*_.*_$")) @TSUnderline
; ((markup) @markup_code (#match? @markup_code "^\\s*\\~.*\\~$")) @String
; ((markup) @markup_verbatim (#match? @markup_verbatim "^\\s*\\=.*\\=$")) @String
; ((markup) @markup_strike (#match? @markup_strike "^\\s*\\+.*\\+$")) @text.strike
(headline (stars) @stars (#eq? @stars "*")) @OrgTSHeadlineLevel1
(headline (stars) @stars (#eq? @stars "**")) @OrgTSHeadlineLevel2
(headline (stars) @stars (#eq? @stars "***")) @OrgTSHeadlineLevel3
Expand All @@ -14,6 +8,8 @@
(headline (stars) @stars (#eq? @stars "******")) @OrgTSHeadlineLevel6
(headline (stars) @stars (#eq? @stars "*******")) @OrgTSHeadlineLevel7
(headline (stars) @stars (#eq? @stars "********")) @OrgTSHeadlineLevel8
(subscript) @OrgTSSubscript
(superscript) @OrgTSSuperscript
(bullet) @OrgTSBullet
(checkbox) @OrgTSCheckbox
((checkbox) @check (#eq? @check "\[-\]")) @OrgTSCheckboxHalfChecked
Expand Down

0 comments on commit 07b10c4

Please sign in to comment.