Skip to content

Commit 66e2585

Browse files
authored
feat: parse typechange (#72)
Ref: #71
1 parent 79fdc5d commit 66e2585

File tree

5 files changed

+5695
-3877
lines changed

5 files changed

+5695
-3877
lines changed

grammar.js

+28-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ module.exports = grammar({
5050
_body_line: ($) =>
5151
choice($.message_line, $.breaking_change, $.trailer, $.comment, NEWLINE),
5252

53-
message_line: ($) => seq(seq(NOT_A_COMMENT, ANYTHING_OR_NONE)),
53+
message_line: () => seq(seq(NOT_A_COMMENT, ANYTHING_OR_NONE)),
5454

5555
trailer: ($) =>
5656
seq(alias(TRAILER_TOKEN, $.token), optional(alias(ANYTHING, $.value))),
@@ -180,7 +180,10 @@ module.exports = grammar({
180180
),
181181

182182
change: ($) =>
183-
field('kind', choice($.new, $.modified, $.renamed, $.deleted)),
183+
field(
184+
'kind',
185+
choice($.new, $.modified, $.renamed, $.deleted, $.typechange)
186+
),
184187

185188
new: () =>
186189
choice(
@@ -267,6 +270,29 @@ module.exports = grammar({
267270
'重新命名:'
268271
),
269272

273+
typechange: () =>
274+
choice(
275+
'typechange:',
276+
'смяна на вида:',
277+
'canviat de tipus:',
278+
'Typänderung:',
279+
'αλλαγή τύπου:',
280+
'cambios de tipo:',
281+
'modif. type :',
282+
'tipe perubahan:',
283+
'modifica tipo:',
284+
'종류 바뀜:',
285+
'zmiana typu:',
286+
'tipo alterado:',
287+
'изменен тип:',
288+
'typbyte:',
289+
'türü değiştirildi:',
290+
'змінено тип:',
291+
'đổi kiểu:',
292+
'类型变更:',
293+
'類型變更:'
294+
),
295+
270296
_filepath: ($) =>
271297
seq(
272298
alias(FILEPATH, $.filepath),

src/grammar.json

+85
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/node-types.json

+85
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)