Skip to content

Commit 4786d96

Browse files
Remove unnecessary checks.
1 parent eb56066 commit 4786d96

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

Syntaxes/Ruby.plist

-28
Original file line numberDiff line numberDiff line change
@@ -647,20 +647,6 @@
647647
<string>(?x)
648648
(?=\s*if\b|\s*unless\b)
649649
(?&lt;=[}\])\w?!"'`])
650-
(?&lt;!\Wif|^if| # \WX|^X is equivalent to \bX
651-
\Wunless|^unless| # this is workaround for code editors which doesn't support onigomo
652-
\Wcase|^case| # https://github.com/microsoft/vscode-textmate/issues/121#issuecomment-565689295
653-
\Wwhen|^when|
654-
\Wwhile|^while|
655-
\Wuntil|^until|
656-
\Wfor|^for|
657-
\Wbegin|^begin|
658-
\Wand|^and|
659-
\Wnot|^not|
660-
\Wor|^or|
661-
\Win|^in|
662-
\W!|^!|
663-
\W\?|^\?)
664650
\s*\b(if)|(unless)\b(?![?!])
665651
</string>
666652
</dict>
@@ -792,20 +778,6 @@
792778
<string>(?x)
793779
(?=\s*while\b|\s*until\b)
794780
(?&lt;=[}\])\w?!"'`])
795-
(?&lt;!\Wif|^if| # \WX|^X is equivalent to \bX
796-
\Wunless|^unless| # this is workaround for code editors which doesn't support onigomo
797-
\Wcase|^case| # https://github.com/microsoft/vscode-textmate/issues/121#issuecomment-565689295
798-
\Wwhen|^when|
799-
\Wwhile|^while|
800-
\Wuntil|^until|
801-
\Wfor|^for|
802-
\Wbegin|^begin|
803-
\Wand|^and|
804-
\Wnot|^not|
805-
\Wor|^or|
806-
\Win|^in|
807-
\W!|^!|
808-
\W\?|^\?)
809781
\s*\b(while)|(until)\b(?![?!])
810782
</string>
811783
</dict>

0 commit comments

Comments
 (0)