Skip to content

Commit

Permalink
feat: parse typechange
Browse files Browse the repository at this point in the history
Ref: #71
  • Loading branch information
gbprod committed Oct 16, 2024
1 parent 79fdc5d commit e16f936
Show file tree
Hide file tree
Showing 5 changed files with 5,695 additions and 3,877 deletions.
30 changes: 28 additions & 2 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ module.exports = grammar({
_body_line: ($) =>
choice($.message_line, $.breaking_change, $.trailer, $.comment, NEWLINE),

message_line: ($) => seq(seq(NOT_A_COMMENT, ANYTHING_OR_NONE)),
message_line: () => seq(seq(NOT_A_COMMENT, ANYTHING_OR_NONE)),

trailer: ($) =>
seq(alias(TRAILER_TOKEN, $.token), optional(alias(ANYTHING, $.value))),
Expand Down Expand Up @@ -180,7 +180,10 @@ module.exports = grammar({
),

change: ($) =>
field('kind', choice($.new, $.modified, $.renamed, $.deleted)),
field(
'kind',
choice($.new, $.modified, $.renamed, $.deleted, $.typechange)
),

new: () =>
choice(
Expand Down Expand Up @@ -267,6 +270,29 @@ module.exports = grammar({
'重新命名:'
),

typechange: () =>
choice(
'typechange:',
'смяна на вида:',
'canviat de tipus:',
'Typänderung:',
'αλλαγή τύπου:',
'cambios de tipo:',
'modif. type :',
'tipe perubahan:',
'modifica tipo:',
'종류 바뀜:',
'zmiana typu:',
'tipo alterado:',
'изменен тип:',
'typbyte:',
'türü değiştirildi:',
'змінено тип:',
'đổi kiểu:',
'类型变更:',
'類型變更:'
),

_filepath: ($) =>
seq(
alias(FILEPATH, $.filepath),
Expand Down
85 changes: 85 additions & 0 deletions src/grammar.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

85 changes: 85 additions & 0 deletions src/node-types.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e16f936

Please sign in to comment.