tangled
alpha
login
or
join now
boltless.me
/
nvim_rocks
0
fork
atom
neovim configuration using rocks.nvim plugin manager
0
fork
atom
overview
issues
pulls
pipelines
feat(queries): better norg highlight queries
Seongmin Lee
10 months ago
52c741bf
a89b8c45
+29
-20
1 changed file
expand all
collapse all
unified
split
after
queries
norg
highlights.scm
+29
-20
after/queries/norg/highlights.scm
···
55
55
(underline) @markup.underline
56
56
(strikethrough) @markup.strikethrough
57
57
(verbatim) @markup.raw.verbatim @nospell
58
58
-
(inline_macro) @function.macro
58
58
+
(inline_macro
59
59
+
"\\" @function.macro
60
60
+
name: (_) @function.macro)
61
61
+
62
62
+
(paragraph) @spell
63
63
+
(_
64
64
+
target: (_) @nospell)
65
65
+
(verbatim) @nospell
59
66
60
67
( [
61
68
(bold [(bold_open) (bold_close)] @conceal)
62
69
(italic [(italic_open) (italic_close)] @conceal)
63
70
(underline [(underline_open) (underline_close)] @conceal)
64
71
(strikethrough [(strikethrough_open) (strikethrough_close)] @conceal)
65
65
-
(verbatim [(verbatim_open) (verbatim_close)] @conceal)
72
72
+
(verbatim [(verbatim_open) (verbatim_close)] @_markup)
73
73
+
(link ["[" "]" "{" "}"] @conceal)
74
74
+
(anchor ["[" "]" "{" "}"] @conceal)
66
75
]
67
76
(#set! conceal ""))
68
77
69
69
-
(link
70
70
-
[
71
71
-
"["
72
72
-
"]"
73
73
-
"{"
74
74
-
"}"
75
75
-
] @conceal
78
78
+
(_
79
79
+
target: (scoped_target
80
80
+
. ":" @conceal)
76
81
(#set! conceal ""))
82
82
+
77
83
;; only conceal target when markup exists for that link
78
84
(link
79
85
target: (_) @conceal
80
86
markup: (_)
81
87
(#set! conceal ""))
88
88
+
(anchor
89
89
+
target: (_) @conceal
90
90
+
(#set! conceal ""))
82
91
(link
83
92
markup: (_) @markup.link)
84
93
(link
85
94
target: (_) @markup.link
86
95
!markup)
87
96
(anchor
88
88
-
[
89
89
-
"["
90
90
-
"]"
91
91
-
"{"
92
92
-
target: (_)
93
93
-
"}"
94
94
-
] @conceal
95
95
-
(#set! conceal ""))
96
96
-
(anchor
97
97
markup: (_) @markup.link)
98
98
99
99
(escape_sequence) @string.escape
100
100
(hard_break) @string.escape
101
101
102
102
-
((escape_sequence) @conceal
103
103
-
(#offset! @conceal 0 0 0 -1)
102
102
+
((escape_sequence) @_conceal
103
103
+
(#offset! @_conceal 0 0 0 -1)
104
104
(#set! conceal ""))
105
105
106
106
((hard_break) @conceal
107
107
(#set! conceal ""))
108
108
+
109
109
+
((attributes) @conceal
110
110
+
(#has-ancestor? @conceal paragraph)
111
111
+
(#set! conceal ""))
112
112
+
113
113
+
(attribute
114
114
+
key: (_) @variable.member)
115
115
+
(attribute
116
116
+
value: (_) @string)
108
117
109
118
(ranged_tag
110
119
[