File tree Expand file tree Collapse file tree 3 files changed +5
-11
lines changed Expand file tree Collapse file tree 3 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ function M.link_ts_highlights()
29
29
OrgTSPlan = ' Constant' ,
30
30
OrgTSComment = ' Comment' ,
31
31
OrgTSDirective = ' Comment' ,
32
+ OrgTSBlock = ' Comment' ,
32
33
}
33
34
34
35
for src , def in pairs (links ) do
@@ -105,7 +106,7 @@ function M.define_org_headline_colors(faces)
105
106
if not ts_highlights_enabled then
106
107
vim .cmd ([[ syn match OrgHideLeadingStars /^\*\{2,\}/me=e-1 contained]] )
107
108
end
108
- vim .cmd ([[ hi def link OrgHideLeadingStars org_hide_leading_stars ]] )
109
+ vim .cmd ([[ hi default OrgHideLeadingStars ctermfg=0 guifg=bg ]] )
109
110
table.insert (contains , ' OrgHideLeadingStars' )
110
111
end
111
112
contains = table.concat (contains , ' ,' )
Original file line number Diff line number Diff line change 12
12
(listitem . (bullet) . (paragraph . (expr "[" "str" @OrgCheckDone "]") @OrgTSCheckboxChecked (#match? @OrgTSCheckboxChecked "\[[xX]\]")))
13
13
(listitem . (bullet) . (paragraph . (expr "[" "-" @OrgCheckInProgress "]") @OrgTSCheckboxHalfChecked (#eq? @OrgTSCheckboxHalfChecked "[-]")))
14
14
(listitem . (bullet) . (paragraph . ((expr "[") @OrgTSCheckbox.left (#eq? @OrgTSCheckbox.left "[") . (expr "]") @OrgTSCheckbox.right (#eq? @OrgTSCheckbox.right "]"))))
15
+ (block "#+begin_" @OrgTSBlock "#+end_" @OrgTSBlock "str" @OrgTSBlock )
16
+ (block name: (expr) @OrgTSBlock )
17
+ (block parameter: (expr) @OrgTSBlock )
15
18
(property_drawer) @OrgTSPropertyDrawer
16
19
(drawer) @OrgTSDrawer
17
20
(tag) @OrgTSTag
Original file line number Diff line number Diff line change @@ -9,18 +9,8 @@ lua require('orgmode.org.syntax').add_todo_keywords_to_spellgood()
9
9
let s: ts_highlight = luaeval (' require("orgmode.config"):ts_highlights_enabled()' )
10
10
if ! s: ts_highlight
11
11
runtime syntax /org_legacy.vim
12
- else
13
- syntax match org_block_delimiter / ^\s *#+\( BEGIN_\| begin_\) .*/
14
- syntax match org_block_delimiter / ^\s *#+\( END_\| end_\) .*/
15
- hi default link org_block_delimiter Comment
16
12
endif
17
13
18
- hi org_hide_leading_stars ctermfg= 0 guifg= bg
19
-
20
- " Tables
21
- syntax match org_table_hrule / ^\s *|[-+]*|\s *$/
22
- hi org_table_hrule gui = NONE cterm= NONE
23
-
24
14
syntax spell toplevel
25
15
26
16
lua require (" orgmode.org.syntax" ).load_code_blocks ()
You can’t perform that action at this time.
0 commit comments