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 Scala boolean literals.
41
+
42
+
This function generates a regular expression that matches the Scala boolean literals `true`, `false`, and the special constant `null`.
43
+
44
+
:return: A compiled regex pattern to match Scala boolean literals and `null`.
45
+
:rtype: re.Pattern
46
+
"""
47
+
returnre.compile(r'\b(?:true|false|null)\b')
48
+
49
+
@staticmethod
50
+
defdelimiters_regex() ->re.Pattern:
51
+
"""
52
+
Compile and return a regular expression pattern to identify Scala language delimiters.
53
+
54
+
This function generates a regular expression that matches Scala language delimiters, which include parentheses `()`, brackets `[]`, braces `{}`, commas `,`, colons `:`, periods `.`, semicolons `;`, angle brackets `<`, `>`, the question mark `?`, and the underscore `_`.
55
+
56
+
:return: A compiled regex pattern to match Scala delimiters.
0 commit comments