Skip to content

Commit

Permalink
[nl] split up rule SPATIE_LEESTEKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-baas committed Dec 28, 2023
1 parent 2faeb17 commit 12531be
Showing 1 changed file with 57 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24941,25 +24941,65 @@ regexp case-insensitive maken: (?i)
</rulegroup>

<rulegroup id="SPATIE_LEESTEKEN" name="spatie voor leesteken schrappen">
<antipattern>
<!-- smiley -->
<token regexp="yes">[:;]</token>
<token spacebefore="no" min="0" regexp="yes">['-oO0]</token>
<token spacebefore="no" regexp="yes">[()DPd\/\|]</token>
</antipattern>
<antipattern>
<token>,</token>
<token regexp="yes">[,?]</token>
</antipattern>
<!-- Exclamation mark -->
<rule>
<pattern>
<token/>
<token spacebefore="yes">!</token>
</pattern>
<message>Voor dit teken hoort geen spatie: <suggestion>\1\2</suggestion>.</message>
<short>!</short>
<example correction="fout!">Dit is <marker>fout !</marker></example>
</rule>
<!-- Question mark -->
<rule>
<antipattern>
<!-- smiley -->
<token regexp="yes">[:;]</token>
<token spacebefore="no" min="0" regexp="yes">['-oO0]</token>
<token spacebefore="no" regexp="yes">[()DPd\/\|]</token>
</antipattern>
<antipattern>
<token spacebefore="yes" skip="3">:</token>
<token spacebefore="no">:</token>
</antipattern>
<antipattern>
<token>?</token>
<token>&gt;</token>
</antipattern>
<pattern>
<token/>
<token spacebefore="yes">?</token>
</pattern>
<message>Voor dit teken hoort geen spatie: <suggestion>\1\2</suggestion>.</message>
<short>?</short>
<example correction="fout?">Dit is <marker>fout ?</marker></example>
</rule>
<!-- Semicolon -->
<rule>
<pattern>
<token/>
<token spacebefore="yes">;</token>
</pattern>
<message>Voor dit teken hoort geen spatie: <suggestion>\1\2</suggestion>.</message>
<short>;</short>
<example correction="fout;">Dit is <marker>fout ;</marker></example>
</rule>
<!-- Comma -->
<rule>
<pattern>
<token/>
<token spacebefore="yes">,</token>
</pattern>
<message>Voor dit teken hoort geen spatie: <suggestion>\1\2</suggestion>.</message>
<short>,</short>
<example correction="fout,">Dit is <marker>fout ,</marker></example>
</rule>
<!-- Colon -->
<rule>
<antipattern>
<token>,</token>
<token regexp="yes">[,?]</token>
<example>Voor de derde keer was ik mijn vrouw kwijt,?</example>
<token spacebefore="yes" skip="3">:</token>
<token spacebefore="no">:</token>
</antipattern>
<antipattern>
<token regexp="yes">\d+</token>
Expand All @@ -24968,20 +25008,11 @@ regexp case-insensitive maken: (?i)
</antipattern>
<pattern>
<token/>
<token spacebefore="yes" regexp="yes">[!?;,:]</token>
<token spacebefore="yes">:</token>
</pattern>
<message>Voor dit teken hoort geen spatie <suggestion>\1\2</suggestion>.</message>
<short>!</short>
<example correction="fout!">Dit is <marker>fout !</marker></example>
<example correction="fout?">Is dit <marker>fout ?</marker></example>
<!-- triggers bug
<example correction="fout,">Dit is <marker>fout ,</marker> toch?</example>
<example correction="fout)">Dit is (<marker>fout ),</marker> toch?</example>
-->
<example correction="),">Dit (is<marker>) ,</marker> toch?</example>
<example>Dit is :-)</example>
<example>Dit is :grin:</example>
<example>24 : 36 =</example>
<message>Voor dit teken hoort geen spatie: <suggestion>\1\2</suggestion>.</message>
<short>:</short>
<example correction="fout:">Dit is <marker>fout :</marker></example>
</rule>
</rulegroup>

Expand Down

0 comments on commit 12531be

Please sign in to comment.