lib/regexp_parser/syntax/tokens.rb in regexp_parser-0.1.0 vs lib/regexp_parser/syntax/tokens.rb in regexp_parser-0.1.1
- old
+ new
@@ -64,10 +64,12 @@
module Escape
Basic = [:backslash, :literal]
Backreference = [:digit]
+ Control = [:control, :meta_sequence]
+
ASCII = [:bell, :backspace, :escape, :form_feed, :newline, :carriage,
:space, :tab, :vertical_tab]
Meta = [:dot, :alternation, :zero_or_one, :zero_or_more, :one_or_more,
:beginning_of_line, :end_of_line, :group_open, :group_close,
@@ -86,13 +88,13 @@
Atomic = [:atomic]
Passive = [:passive]
Comment = [:comment]
module Assertion
- Positive = [:lookahead, :lookbehind]
- Negative = [:nlookahead, :nlookbehind]
+ Lookahead = [:lookahead, :nlookahead]
+ Lookbehind = [:lookbehind, :nlookbehind]
- All = Positive + Negative
+ All = Lookahead + Lookbehind
end
module Backreference
Name = [:name_ref]
Number = [:number_ref, :number_rel_ref]