blob: 6c40e67a7384b37e83a82bfbd02d5e984e25fb8e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File storage for static regular expressions.
########################################################
# Regular expressions for handling double-quoted strings
########################################################
## Match a possible single character escape
possibleStringEscape \\.
## Match valid string escapes
shortFormStringEscape [btnfr"'\\]
octalStringEscape [0-3]?[0-7]{1,2}
unicodeStringEscape u[0-9a-fA-F]{4}
## Match an unescaped quote in a string.
unescapedQuote (?<!\\)\"
## Match one or more characters that aren't part of an escape or a quote.
nonStringEscape [^\\\"]+
##################################
# Miscellaneous validation regexes
##################################
intLiteral \A[+\-]\d+\Z
|