mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v.fmt: add an independent Comment.is_inline flag. Use it for fixing [ .. //x ]
=> [ .. //x, ]
This commit is contained in:
@ -438,7 +438,7 @@ fn (t Tree) comment(node ast.Comment) &Node {
|
||||
obj.add('ast_type', t.string_node('Comment'))
|
||||
obj.add('text', t.string_node(node.text))
|
||||
obj.add('is_multi', t.bool_node(node.is_multi))
|
||||
obj.add('line_nr', t.number_node(node.line_nr))
|
||||
obj.add('is_inline', t.bool_node(node.is_inline))
|
||||
obj.add('pos', t.position(node.pos))
|
||||
return obj
|
||||
}
|
||||
|
@ -44,7 +44,6 @@ const (
|
||||
]
|
||||
vfmt_known_failing_exceptions = arrays.merge(verify_known_failing_exceptions, [
|
||||
'vlib/strconv/' /* prevent conflicts, till the new pure V string interpolation is merged */,
|
||||
'vlib/net/http/cookie_test.v' /* a very weird bug where `,` keeps on being added in comments */,
|
||||
'vlib/term/ui/input.v' /* comment after a struct embed is removed */,
|
||||
'vlib/regex/regex_test.v' /* contains meaningfull formatting of the test case data */,
|
||||
'vlib/readline/readline_test.v' /* vfmt eats `{ Readline }` from `import readline { Readline }` */,
|
||||
|
Reference in New Issue
Block a user