Skip to content

Commit 4842abe

Browse files
ironhouzilewis6991
authored andcommitted
chore: sort DEFAULT_TYPE_PATTERNS
Alphabetically sort DEFAULT_TYPE_PATTERNS language entries, to quickly assess included languages as the list of languages grow.
1 parent aaf635a commit 4842abe

File tree

1 file changed

+26
-27
lines changed

1 file changed

+26
-27
lines changed

lua/treesitter-context.lua

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -96,26 +96,44 @@ local DEFAULT_TYPE_PATTERNS = {
9696
'struct',
9797
'enum',
9898
},
99-
tex = {
100-
'chapter',
101-
'section',
102-
'subsection',
103-
'subsubsection',
99+
elixir = {
100+
'anonymous_function',
101+
'arguments',
102+
'block',
103+
'do_block',
104+
'list',
105+
'map',
106+
'tuple',
107+
'quoted_content',
104108
},
105109
haskell = {
106110
'adt'
107111
},
112+
json = {
113+
'pair',
114+
},
115+
markdown = {
116+
'section',
117+
},
108118
rust = {
109119
'impl_item',
110-
120+
},
121+
scala = {
122+
'object_definition',
111123
},
112124
terraform = {
113125
'block',
114126
'object_elem',
115127
'attribute',
116128
},
117-
scala = {
118-
'object_definition',
129+
tex = {
130+
'chapter',
131+
'section',
132+
'subsection',
133+
'subsubsection',
134+
},
135+
typescript = {
136+
'export_statement',
119137
},
120138
verilog = {
121139
'always_construct',
@@ -126,25 +144,6 @@ local DEFAULT_TYPE_PATTERNS = {
126144
'architecture_body',
127145
'entity_declaration',
128146
},
129-
markdown = {
130-
'section',
131-
},
132-
elixir = {
133-
'anonymous_function',
134-
'arguments',
135-
'block',
136-
'do_block',
137-
'list',
138-
'map',
139-
'tuple',
140-
'quoted_content',
141-
},
142-
json = {
143-
'pair',
144-
},
145-
typescript = {
146-
'export_statement',
147-
},
148147
yaml = {
149148
'block_mapping_pair',
150149
},

0 commit comments

Comments
 (0)