File tree Expand file tree Collapse file tree 5 files changed +29
-6
lines changed Expand file tree Collapse file tree 5 files changed +29
-6
lines changed Original file line number Diff line number Diff line change @@ -1834,7 +1834,7 @@ repository:
1834
1834
regex :
1835
1835
patterns :
1836
1836
- name : string.regexp.ts
1837
- begin : (?<=[=(:,\[?+!]|return|case|=>|&&|\|\||\*\/)\s*(\/)(?![\/*])(?=(?:[^\/\\\[]|\\.|\[([^\]\\]|\\.)+\])+\/(?![\/*])[gimy ]*(?!\s*[a-zA-Z0-9_$]))
1837
+ begin : (?<=[=(:,\[?+!]|return|case|=>|&&|\|\||\*\/)\s*(\/)(?![\/*])(?=(?:[^\/\\\[]|\\.|\[([^\]\\]|\\.)+\])+\/(?![\/*])[gimuy ]*(?!\s*[a-zA-Z0-9_$]))
1838
1838
beginCaptures :
1839
1839
' 1 ' : {name: punctuation.definition.string.begin.ts}
1840
1840
end : (/)([gimuy]*)
@@ -1845,7 +1845,7 @@ repository:
1845
1845
- include : ' #regexp'
1846
1846
# Check if complete regexp syntax
1847
1847
- name : string.regexp.ts
1848
- begin : (?<![_$[:alnum:])])\/(?![\/*])(?=(?:[^\/\\\[]|\\.|\[([^\]\\]|\\.)+\])+\/(?![\/*])[gimy ]*(?!\s*[a-zA-Z0-9_$]))
1848
+ begin : (?<![_$[:alnum:])])\/(?![\/*])(?=(?:[^\/\\\[]|\\.|\[([^\]\\]|\\.)+\])+\/(?![\/*])[gimuy ]*(?!\s*[a-zA-Z0-9_$]))
1849
1849
beginCaptures :
1850
1850
' 0 ' : {name: punctuation.definition.string.begin.ts}
1851
1851
end : (/)([gimuy]*)
Original file line number Diff line number Diff line change 4994
4994
<key >name </key >
4995
4995
<string >string.regexp.ts </string >
4996
4996
<key >begin </key >
4997
- <string >(?< =[=(:,\[?+!]|return|case|=> |&& |\|\||\*\/)\s*(\/)(?![\/*])(?=(?:[^\/\\\[]|\\.|\[([^\]\\]|\\.)+\])+\/(?![\/*])[gimy ]*(?!\s*[a-zA-Z0-9_$])) </string >
4997
+ <string >(?< =[=(:,\[?+!]|return|case|=> |&& |\|\||\*\/)\s*(\/)(?![\/*])(?=(?:[^\/\\\[]|\\.|\[([^\]\\]|\\.)+\])+\/(?![\/*])[gimuy ]*(?!\s*[a-zA-Z0-9_$])) </string >
4998
4998
<key >beginCaptures </key >
4999
4999
<dict >
5000
5000
<key >1 </key >
5030
5030
<key >name </key >
5031
5031
<string >string.regexp.ts </string >
5032
5032
<key >begin </key >
5033
- <string >(?< ![_$[:alnum:])])\/(?![\/*])(?=(?:[^\/\\\[]|\\.|\[([^\]\\]|\\.)+\])+\/(?![\/*])[gimy ]*(?!\s*[a-zA-Z0-9_$])) </string >
5033
+ <string >(?< ![_$[:alnum:])])\/(?![\/*])(?=(?:[^\/\\\[]|\\.|\[([^\]\\]|\\.)+\])+\/(?![\/*])[gimuy ]*(?!\s*[a-zA-Z0-9_$])) </string >
5034
5034
<key >beginCaptures </key >
5035
5035
<dict >
5036
5036
<key >0 </key >
Original file line number Diff line number Diff line change 4940
4940
<key >name </key >
4941
4941
<string >string.regexp.tsx </string >
4942
4942
<key >begin </key >
4943
- <string >(?< =[=(:,\[?+!]|return|case|=> |&& |\|\||\*\/)\s*(\/)(?![\/*])(?=(?:[^\/\\\[]|\\.|\[([^\]\\]|\\.)+\])+\/(?![\/*])[gimy ]*(?!\s*[a-zA-Z0-9_$])) </string >
4943
+ <string >(?< =[=(:,\[?+!]|return|case|=> |&& |\|\||\*\/)\s*(\/)(?![\/*])(?=(?:[^\/\\\[]|\\.|\[([^\]\\]|\\.)+\])+\/(?![\/*])[gimuy ]*(?!\s*[a-zA-Z0-9_$])) </string >
4944
4944
<key >beginCaptures </key >
4945
4945
<dict >
4946
4946
<key >1 </key >
4976
4976
<key >name </key >
4977
4977
<string >string.regexp.tsx </string >
4978
4978
<key >begin </key >
4979
- <string >(?< ![_$[:alnum:])])\/(?![\/*])(?=(?:[^\/\\\[]|\\.|\[([^\]\\]|\\.)+\])+\/(?![\/*])[gimy ]*(?!\s*[a-zA-Z0-9_$])) </string >
4979
+ <string >(?< ![_$[:alnum:])])\/(?![\/*])(?=(?:[^\/\\\[]|\\.|\[([^\]\\]|\\.)+\])+\/(?![\/*])[gimuy ]*(?!\s*[a-zA-Z0-9_$])) </string >
4980
4980
<key >beginCaptures </key >
4981
4981
<dict >
4982
4982
<key >0 </key >
Original file line number Diff line number Diff line change
1
+ original file
2
+ -----------------------------------
3
+ (/a/u);
4
+ -----------------------------------
5
+
6
+ Grammar: TypeScript.tmLanguage
7
+ -----------------------------------
8
+ >(/a/u);
9
+ ^
10
+ source.ts meta.brace.round.ts
11
+ ^
12
+ source.ts string.regexp.ts punctuation.definition.string.begin.ts
13
+ ^
14
+ source.ts string.regexp.ts
15
+ ^
16
+ source.ts string.regexp.ts punctuation.definition.string.end.ts
17
+ ^
18
+ source.ts string.regexp.ts keyword.other.ts
19
+ ^
20
+ source.ts meta.brace.round.ts
21
+ ^
22
+ source.ts punctuation.terminator.statement.ts
Original file line number Diff line number Diff line change
1
+ ( / a / u) ;
You can’t perform that action at this time.
0 commit comments