Class: RDoc::Markdown::Literals
Relationships & Source Files | |
Namespace Children | |
Exceptions:
| |
Inherits: | Object |
Defined in: | lib/rdoc/markdown/literals_1_9.rb |
Constant Summary
Instance Method Summary
-
#_Alphanumeric
Alphanumeric = /p
Word
/. -
#_AlphanumericAscii
AlphanumericAscii = /[A-Za-z0-9]/.
-
#_BOM
BOM = “uFEFF”.
-
#_Newline
Newline = /n|rn?|p
Zl
|pZp
/. -
#_NonAlphanumeric
NonAlphanumeric = /p
^Word
/. -
#_Spacechar
Spacechar = /t|p
Zs
/. - #setup_foreign_grammar
Instance Method Details
#_Alphanumeric
Alphanumeric = /pWord
/
# File 'lib/rdoc/markdown/literals_1_9.rb', line 372
def _Alphanumeric _tmp = scan(/\A(?-mix:\p{Word})/) set_failed_rule :_Alphanumeric unless _tmp return _tmp end
#_AlphanumericAscii
AlphanumericAscii = /[A-Za-z0-9]/
# File 'lib/rdoc/markdown/literals_1_9.rb', line 379
def _AlphanumericAscii _tmp = scan(/\A(?-mix:[A-Za-z0-9])/) set_failed_rule :_AlphanumericAscii unless _tmp return _tmp end
#_BOM
BOM = “uFEFF”
# File 'lib/rdoc/markdown/literals_1_9.rb', line 386
def _BOM _tmp = match_string("uFEFF") set_failed_rule :_BOM unless _tmp return _tmp end
#_Newline
Newline = /n|rn?|pZl
|pZp
/
# File 'lib/rdoc/markdown/literals_1_9.rb', line 393
def _Newline _tmp = scan(/\A(?-mix:\n|\r\n?|\p{Zl}|\p{Zp})/) set_failed_rule :_Newline unless _tmp return _tmp end
#_NonAlphanumeric
NonAlphanumeric = /p^Word
/
# File 'lib/rdoc/markdown/literals_1_9.rb', line 400
def _NonAlphanumeric _tmp = scan(/\A(?-mix:\p{^Word})/) set_failed_rule :_NonAlphanumeric unless _tmp return _tmp end
#_Spacechar
Spacechar = /t|pZs
/
# File 'lib/rdoc/markdown/literals_1_9.rb', line 407
def _Spacechar _tmp = scan(/\A(?-mix:\t|\p{Zs})/) set_failed_rule :_Spacechar unless _tmp return _tmp end
#setup_foreign_grammar
[ GitHub ]# File 'lib/rdoc/markdown/literals_1_9.rb', line 369
def setup_foreign_grammar; end