%% name = ReVIEW::Compiler::Literals %% header { # coding: UTF-8 ## #-- # This set of literals is for Ruby 1.9 regular expressions and gives full # unicode support. # # Unlike peg-markdown, this set of literals recognizes Unicode alphanumeric # characters, newlines and spaces. } Alphanumeric = /\p{Word}/ AlphanumericAscii = /[A-Za-z0-9]/ LowerAlphabetAscii = /[a-z]/ Digit = /[0-9]/ BOM = "\uFEFF" Newline = /\n|\r\n?|\p{Zl}|\p{Zp}/ NonAlphanumeric = /\p{^Word}/ Spacechar = /\t|\p{Zs}/