git.delta.rocks / jrsonnet / refs/commits / 2223f9ab687d

difftreelog

fix incorrect doccomment parsing

pyqrqpwvYaroslav Bolyukin2026-05-07parent: #3c251da.patch.diff
in: master

8 files changed

modifiedcrates/jrsonnet-lexer/src/generated/syntax_kinds.rsdiffbeforeafterboth
128 SINGLE_LINE_SLASH_COMMENT,128 SINGLE_LINE_SLASH_COMMENT,
129 #[regex("#[^\\r\\n]*?(\\r\\n|\\n)?")]129 #[regex("#[^\\r\\n]*?(\\r\\n|\\n)?")]
130 SINGLE_LINE_HASH_COMMENT,130 SINGLE_LINE_HASH_COMMENT,
131 #[regex("/\\*([^*]|\\*[^/])*\\*/")]131 #[regex("/\\*([^*]|\\*+[^*/])*\\*+/")]
132 MULTI_LINE_COMMENT,132 MULTI_LINE_COMMENT,
133 #[regex("/\\*/")]133 #[regex("/\\*/")]
134 ERROR_COMMENT_TOO_SHORT,134 ERROR_COMMENT_TOO_SHORT,
addedcrates/jrsonnet-rowan-parser/src/snapshots/jrsonnet_rowan_parser__tests__multi_line_comment_doc.snapdiffbeforeafterboth

no changes

addedcrates/jrsonnet-rowan-parser/src/snapshots/jrsonnet_rowan_parser__tests__multi_line_comment_empty.snapdiffbeforeafterboth

no changes

addedcrates/jrsonnet-rowan-parser/src/snapshots/jrsonnet_rowan_parser__tests__multi_line_comment_inner_star.snapdiffbeforeafterboth

no changes

addedcrates/jrsonnet-rowan-parser/src/snapshots/jrsonnet_rowan_parser__tests__multi_line_comment_too_short.snapdiffbeforeafterboth

no changes

addedcrates/jrsonnet-rowan-parser/src/snapshots/jrsonnet_rowan_parser__tests__multi_line_comment_triple_star.snapdiffbeforeafterboth

no changes

addedcrates/jrsonnet-rowan-parser/src/snapshots/jrsonnet_rowan_parser__tests__multi_line_comment_unterminated.snapdiffbeforeafterboth

no changes

modifiedcrates/jrsonnet-rowan-parser/src/tests.rsdiffbeforeafterboth
242 { [k]: a + b for [k]: [a, b] in obj }242 { [k]: a + b for [k]: [a, b] in obj }
243 "#243 "#
244
245 multi_line_comment_doc => r#"
246 { a:: 1, /** doc **/ b:: 2 }
247 "#
248 multi_line_comment_empty => r#"
249 /**/ 1
250 "#
251 multi_line_comment_triple_star => r#"
252 /***/ 2
253 "#
254 multi_line_comment_inner_star => r#"
255 /* * */ 3
256 "#
257 multi_line_comment_too_short => r#"
258 /*/
259 "#
260 multi_line_comment_unterminated => r#"
261 /** unterminated
262 "#
244);263);
245264
246#[test]265#[test]