Skip to content

Commit

Permalink
Drop redundant space after skip
Browse files Browse the repository at this point in the history
  • Loading branch information
bbannier committed Jan 12, 2024
1 parent f4b9f85 commit 7f9f3cb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions rule-tests/__snapshots__/use-skip-snapshot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
id: use-skip
snapshots:
'type X = unit { : b""; };':
fixed: 'type X = unit { : skip b""; };'
fixed: 'type X = unit { : skip b""; };'
labels:
- source: ': b"";'
style: primary
Expand All @@ -12,7 +12,7 @@ snapshots:
start: 18
end: 21
'type X = unit { : bytes &eod; };':
fixed: 'type X = unit { : skip bytes &eod; };'
fixed: 'type X = unit { : skip bytes &eod; };'
labels:
- source: ': bytes &eod;'
style: primary
Expand All @@ -23,7 +23,7 @@ snapshots:
start: 18
end: 23
'type X = unit { : int64; };':
fixed: 'type X = unit { : skip int64; };'
fixed: 'type X = unit { : skip int64; };'
labels:
- source: ': int64;'
style: primary
Expand All @@ -34,7 +34,7 @@ snapshots:
start: 18
end: 23
'type X = unit { : uint8 if(mod::var==1); };':
fixed: 'type X = unit { : skip uint8 if(mod::var==1); };'
fixed: 'type X = unit { : skip uint8 if(mod::var==1); };'
labels:
- source: ': uint8 if(mod::var==1);'
style: primary
Expand All @@ -45,7 +45,7 @@ snapshots:
start: 18
end: 23
'type X = unit { : uint8 {1;} };':
fixed: 'type X = unit { : skip uint8 {1;} };'
fixed: 'type X = unit { : skip uint8 {1;} };'
labels:
- source: ': uint8 {1;}'
style: primary
Expand All @@ -56,7 +56,7 @@ snapshots:
start: 18
end: 23
'type X = unit { : uint8(1); };':
fixed: 'type X = unit { : skip uint8(1); };'
fixed: 'type X = unit { : skip uint8(1); };'
labels:
- source: ': uint8(1);'
style: primary
Expand All @@ -67,7 +67,7 @@ snapshots:
start: 18
end: 23
'type X = unit { : uint8; };':
fixed: 'type X = unit { : skip uint8; };'
fixed: 'type X = unit { : skip uint8; };'
labels:
- source: ': uint8;'
style: primary
Expand Down
2 changes: 1 addition & 1 deletion rules/use-skip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ transform:
FF:
replace:
replace: "^:"
by: ": skip "
by: ": skip"
source: "$F"

fix: "$FF"
Expand Down

0 comments on commit 7f9f3cb

Please sign in to comment.