Module: Prism::RegularExpressionFlags
- Defined in:
- lib/prism/node.rb
Overview
Flags for regular expression and match last line nodes.
Constant Summary collapse
- IGNORE_CASE =
i - ignores the case of characters when matching
1 << 2
- EXTENDED =
x - ignores whitespace and allows comments in regular expressions
1 << 3
- MULTI_LINE =
m - allows $ to match the end of lines within strings
1 << 4
- ONCE =
o - only interpolates values into the regular expression once
1 << 5
- EUC_JP =
e - forces the EUC-JP encoding
1 << 6
- ASCII_8BIT =
n - forces the ASCII-8BIT encoding
1 << 7
- WINDOWS_31J =
s - forces the Windows-31J encoding
1 << 8
- UTF_8 =
u - forces the UTF-8 encoding
1 << 9
- FORCED_UTF8_ENCODING =
internal bytes forced the encoding to UTF-8
1 << 10
- FORCED_BINARY_ENCODING =
internal bytes forced the encoding to binary
1 << 11
- FORCED_US_ASCII_ENCODING =
internal bytes forced the encoding to US-ASCII
1 << 12