aboutsummaryrefslogtreecommitdiffstats
path: root/queries/markdown
diff options
context:
space:
mode:
authorRiley Bruins <ribru17@hotmail.com>2023-11-29 16:36:07 -0800
committerGitHub <noreply@github.com>2023-11-30 09:36:07 +0900
commite9acd01a4a1f6e584f76e736987f4c31401aa4b1 (patch)
tree9ec700e149f0ef980239b3b6c5a878c5885ffedf /queries/markdown
parentfeat(make): highlight phony prerequisites as functions (diff)
downloadnvim-treesitter-e9acd01a4a1f6e584f76e736987f4c31401aa4b1.tar
nvim-treesitter-e9acd01a4a1f6e584f76e736987f4c31401aa4b1.tar.gz
nvim-treesitter-e9acd01a4a1f6e584f76e736987f4c31401aa4b1.tar.bz2
nvim-treesitter-e9acd01a4a1f6e584f76e736987f4c31401aa4b1.tar.lz
nvim-treesitter-e9acd01a4a1f6e584f76e736987f4c31401aa4b1.tar.xz
nvim-treesitter-e9acd01a4a1f6e584f76e736987f4c31401aa4b1.tar.zst
nvim-treesitter-e9acd01a4a1f6e584f76e736987f4c31401aa4b1.zip
fix(markdown): revert bullet conceals due to spacing issues (#5742)
Diffstat (limited to 'queries/markdown')
-rw-r--r--queries/markdown/highlights.scm38
1 files changed, 21 insertions, 17 deletions
diff --git a/queries/markdown/highlights.scm b/queries/markdown/highlights.scm
index 085a1d827..9ffc6ee86 100644
--- a/queries/markdown/highlights.scm
+++ b/queries/markdown/highlights.scm
@@ -34,23 +34,27 @@
(info_string (language) @conceal
(#set! conceal "")))
-;; Conceal bullet points
-([(list_marker_plus) (list_marker_star)]
- @punctuation.special
- (#offset! @punctuation.special 0 0 0 -1)
- (#set! conceal "•"))
-([(list_marker_plus) (list_marker_star)]
- @punctuation.special
- (#any-of? @punctuation.special "+" "*")
- (#set! conceal "•"))
-((list_marker_minus)
- @punctuation.special
- (#offset! @punctuation.special 0 0 0 -1)
- (#set! conceal "—"))
-((list_marker_minus)
- @punctuation.special
- (#eq? @punctuation.special "-")
- (#set! conceal "—"))
+; NOTE: The following has been commented out due to issues with spaces in the
+; list marker nodes generated by the parser. If those spaces ever get captured
+; by a different node (e.g. block_continuation) we can safely readd these
+; conceals.
+; ;; Conceal bullet points
+; ([(list_marker_plus) (list_marker_star)]
+; @punctuation.special
+; (#offset! @punctuation.special 0 0 0 -1)
+; (#set! conceal "•"))
+; ([(list_marker_plus) (list_marker_star)]
+; @punctuation.special
+; (#any-of? @punctuation.special "+" "*")
+; (#set! conceal "•"))
+; ((list_marker_minus)
+; @punctuation.special
+; (#offset! @punctuation.special 0 0 0 -1)
+; (#set! conceal "—"))
+; ((list_marker_minus)
+; @punctuation.special
+; (#eq? @punctuation.special "-")
+; (#set! conceal "—"))
(code_fence_content) @none