Skip to content

Commit 79db228

Browse files
author
MattDMo
committed
Latest build
1 parent a64d312 commit 79db228

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Regular Expressions (PythonImproved).tmLanguage

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,19 @@
5252
<key>comment</key>
5353
<string>We are restrictive in what we allow to go after the comment character to avoid false positives, since the availability of comments depend on regexp flags.</string>
5454
<key>match</key>
55-
<string>(?&lt;=^|\s)#\s[[\p{Alnum},. \t?!-:][^\x{00}-\x{7F}]]*$</string>
55+
<string>(?&lt;=^|\s)#\s[[[:alnum:],. \t?!-:][^\x{00}-\x{7F}]]*$</string>
5656
<key>name</key>
5757
<string>comment.line.number-sign.regexp</string>
5858
</dict>
5959
<dict>
6060
<key>match</key>
61-
<string>\(\?[iLmsux]+\)</string>
61+
<string>\(\?[giLmsux]+\)</string>
6262
<key>name</key>
6363
<string>keyword.other.option-toggle.regexp</string>
6464
</dict>
6565
<dict>
6666
<key>match</key>
67-
<string>(\()(\?P=([\p{Alpha}_][\p{Alnum}_]*\w*))(\))</string>
67+
<string>(\()(\?P=([[:alpha:]_][[:alnum:]_]*\w*))(\))</string>
6868
<key>name</key>
6969
<string>keyword.other.back-reference.named.regexp</string>
7070
</dict>
@@ -126,7 +126,7 @@
126126
</dict>
127127
<dict>
128128
<key>begin</key>
129-
<string>(\()(\?\(([1-9][0-9]?|[\p{Alpha}_][\p{Alnum}_]*)\))</string>
129+
<string>(\()(\?\(([1-9][0-9]?|[[:alpha:]_][[:alnum:]_]*)\))</string>
130130
<key>beginCaptures</key>
131131
<dict>
132132
<key>1</key>
@@ -161,7 +161,7 @@
161161
</dict>
162162
<dict>
163163
<key>begin</key>
164-
<string>(\()((\?P&lt;)([\p{Alpha}]\w*)(&gt;)|(\?:))?</string>
164+
<string>(\()((\?P&lt;)([[:alpha:]_][[:alnum:]_]*)(&gt;)|(\?:))?</string>
165165
<key>beginCaptures</key>
166166
<dict>
167167
<key>1</key>

0 commit comments

Comments
 (0)