Skip to content

Commit 2aeab7b

Browse files
Fix for optimization. Last commit ruins some rules.
1 parent 873fd49 commit 2aeab7b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Syntaxes/Ruby.plist

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@
645645
</dict>
646646
<key>match</key>
647647
<string>(?x)
648-
(?=if\b|unless\b)
648+
(?=\s*if\b|\s*unless\b)
649649
(?&lt;=[}\])\w?!"'`])
650650
(?&lt;!\Wif|^if| # \WX|^X is equivalent to \bX
651651
\Wunless|^unless| # this is workaround for code editors which doesn't support onigomo
@@ -667,7 +667,7 @@
667667
<dict>
668668
<key>begin</key>
669669
<string>(?x)
670-
(?=if\b)
670+
(?=\s*if\b)
671671
(?&lt;!::)
672672
(?&lt;=&lt;|&amp;|\||=|&gt;|~|\^|[+\-*/%]|\.{2}|\.{3}|^|;|:|\[|\(|\{|,|
673673
\Wif|^if| # \WX|^X is equivalent to \bX
@@ -722,7 +722,7 @@
722722
<dict>
723723
<key>begin</key>
724724
<string>(?x)
725-
(?=unless\b)
725+
(?=\s*unless\b)
726726
(?&lt;!::)
727727
(?&lt;=&lt;|&amp;|\||=|&gt;|~|\^|[+\-*/%]|\.{2}|\.{3}|^|;|:|\[|\(|\{|,|
728728
\Wif|^if| # \WX|^X is equivalent to \bX
@@ -790,7 +790,7 @@
790790
</dict>
791791
<key>match</key>
792792
<string>(?x)
793-
(?=while\b|until\b)
793+
(?=\s*while\b|\s*until\b)
794794
(?&lt;=[}\])\w?!"'`])
795795
(?&lt;!\Wif|^if| # \WX|^X is equivalent to \bX
796796
\Wunless|^unless| # this is workaround for code editors which doesn't support onigomo
@@ -812,7 +812,7 @@
812812
<dict>
813813
<key>begin</key>
814814
<string>(?x)
815-
(?=while\b)
815+
(?=\s*while\b)
816816
(?&lt;!::)
817817
(?&lt;=&lt;|&amp;|\||=|&gt;|~|\^|[+\-*/%]|\.{2}|\.{3}|^|;|:|\[|\(|\{|,|
818818
\Wif|^if| # \WX|^X is equivalent to \bX
@@ -888,7 +888,7 @@
888888
<dict>
889889
<key>begin</key>
890890
<string>(?x)
891-
(?=until\b)
891+
(?=\s*until\b)
892892
(?&lt;!::)
893893
(?&lt;=&lt;|&amp;|\||=|&gt;|~|\^|[+\-*/%]|\.{2}|\.{3}|^|;|:|\[|\(|\{|,|
894894
\Wif|^if| # \WX|^X is equivalent to \bX

0 commit comments

Comments
 (0)