You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compile and return a regular expression pattern to identify JavaScript delimiters.
67
+
68
+
This function generates a regular expression that matches JavaScript delimiters, including parentheses `()`, brackets `[]`, braces `{}`, commas `,`, colons `:`, periods `.`, semicolons `;`, at symbols `@`, as well as angle brackets `<` and `>`.
69
+
70
+
:return: A compiled regex pattern to match JavaScript delimiters.
71
+
:rtype: re.Pattern
72
+
"""
73
+
returnre.compile(r'[()\[\]{}.,:;@<>]')
74
+
75
+
@staticmethod
76
+
defkeywords_regex() ->re.Pattern:
77
+
"""
78
+
Compile and return a regular expression pattern to identify JavaScript keywords.
79
+
80
+
:return: A compiled regex pattern to match JavaScript keywords.
Compile and return a regular expression pattern to identify JSX delimiters.
71
+
72
+
This function generates a regular expression that matches JSX delimiters, including parentheses `(`, brackets `[]`, braces `{}`, commas `,`, colons `:`, periods `.`, semicolons `;`, at symbols `@`, as well as angle brackets `<` and `>`.
73
+
74
+
:return: A compiled regex pattern to match JSX delimiters.
75
+
:rtype: re.Pattern
76
+
"""
77
+
returnre.compile(r'[()\[\]{}.,:;@<>]')
78
+
79
+
@staticmethod
80
+
defboolean_regex() ->re.Pattern:
81
+
"""
82
+
Compile and return a regular expression pattern to identify JSX boolean literals.
83
+
84
+
:return: A compiled regex pattern to match JSX boolean literals.
0 commit comments