Skip to content

Commit f304dce

Browse files
authored
docs: update formatting (#1909)
commit-id:a8e44c1e
1 parent 18f1ca1 commit f304dce

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

website/docs/guides/formatting.md

+15-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ Files that had already been in a correct format will not be emitted.
2020
This may be useful for integrating with some external tools.
2121

2222
You can choose packages to format with `--package / --workspace` arguments.
23-
When formatting a package, all cairo files in package root and directories below will be formatted (not only the `src/*` directory).
23+
When formatting a package, all cairo files in package root and directories below will be formatted (not only the `src/*`
24+
directory).
2425

2526
## Formatting options
2627

@@ -58,3 +59,16 @@ You can create multiple ignore files on different levels of your directory struc
5859
`.gitignore` files.
5960

6061
Additionally, files ignored by the `.gitignore` files will be omitted as well.
62+
63+
## Ignoring lines
64+
65+
Mark statements or expressions with `#[cairofmt::skip]` attribute to omit them during formatting. See example below:
66+
67+
```cairo
68+
#[cairofmt::skip]
69+
let a = array![
70+
1,
71+
2,
72+
3
73+
];
74+
```

0 commit comments

Comments
 (0)